CN110601984A - 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
- CN110601984A CN110601984A CN201910891163.6A CN201910891163A CN110601984A CN 110601984 A CN110601984 A CN 110601984A CN 201910891163 A CN201910891163 A CN 201910891163A CN 110601984 A CN110601984 A CN 110601984A
- Authority
- CN
- China
- Prior art keywords
- local
- service
- link
- address
- 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.)
- Granted
Links
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网络即可获取到所需的目标本地服务。
Embodiments of the present application provide a method and device for obtaining local services and generating link-local addresses, which are applied to user equipment, and the method includes: after the user equipment accesses the IPv6 network, determining whether a router advertisement message is received , wherein, the router advertisement message carries a uniform resource identifier URI used to indicate the entry of the local service; if the router advertisement message is not received, obtain the link-local address corresponding to the target local service, wherein the Service description information corresponding to the target local service is embedded in the link-local address; based on the link-local address, the target local service is acquired. In this way, acquiring local services through link-local addresses can achieve the desired target local services without relying on other servers such as DNS servers and DHCP servers, and only needs to access the IPv6 network.
Description
技术领域technical field
本申请涉及互联网技术领域,尤其涉及一种获取本地服务、生成链路本地地址的方法及装置。The present application relates to the technical field of the Internet, and in particular to a method and device for obtaining 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. often change with the geographical location of the user vary with location.
目前,主要是通过DHCP(Dynamic Host Configuration Protocol,动态主机配置协议)或者DNS(Domain Name System,域名系统)来获取本地服务,但是,由于这些实施方案要依赖于DNS服务器、DHCP服务器等其它服务,体系结构较为复杂,不利于部署,使得用户设备支持度较差,常常会出现用户设备在某地接入IPv6(Internet Protocol Version 6,互联网协议第6版)网络后无法获取到对应的本地服务的问题。At present, local services are obtained mainly through DHCP (Dynamic Host Configuration Protocol) or DNS (Domain Name System, domain name system). However, since these implementations depend on other services such as DNS servers and DHCP servers, The system structure is relatively complex, which is not conducive to deployment, which makes the support of user equipment poor. It often happens that the user equipment cannot obtain the corresponding local services after connecting to the IPv6 (Internet Protocol Version 6, Internet Protocol Version 6) network in a certain place. question.
发明内容Contents of the invention
有鉴于此,本申请实施例提供一种获取本地服务、生成链路本地地址的方法及装置,通过链路本地地址来获取本地服务,能够实现不依赖于DNS服务器、DHCP服务器等其它服务器,只需接入IPv6网络即可获取到所需的目标本地服务。In view of this, the embodiment of the present application provides a method and device for acquiring local services and generating link-local addresses. The link-local addresses are used to acquire local services, which can achieve independence from other servers such as DNS servers and DHCP servers. Access to the IPv6 network is required to obtain the required target local services.
本申请实施例主要提供如下技术方案:The embodiment of the present application mainly provides the following technical solutions:
第一方面,本申请实施例提供了一种获取本地服务的方法,应用于用户设备,所述方法包括:在所述用户设备接入IPv6网络后,确定是否接收到路由器通告报文,其中,所述路由器通告报文中携带有用于指示本地服务入口的统一资源标识符URI;若没有接收到所述路由器通告报文,获取目标本地服务对应的链路本地地址,其中,所述链路本地地址中嵌入有目标本地服务对应的服务描述信息;基于所述链路本地地址,获取所述目标本地服务。In the first aspect, the embodiment of the present application provides a method for obtaining local services, which is applied to user equipment, and the method includes: after the user equipment accesses the IPv6 network, determining whether a router advertisement message is received, wherein, The router advertisement message carries a uniform resource identifier URI used to indicate the entry of the local service; if the router advertisement message is not received, obtain the link-local address corresponding to the target local service, wherein the link-local Service description information corresponding to the target local service is embedded in the address; and the target local service is acquired based on the link-local address.
第二方面,本申请实施例提供了一种生成链路本地地址的方法,应用于用户设备,所述方法包括:在所述用户设备接入IPv6网络后,获得所述用户设备对应的IPv6地址和目标本地服务对应的服务描述信息,其中,所述服务描述信息包括:服务标识和通讯协议;将所述服务描述信息嵌入至所述IPv6地址的后64位中,生成上述的获取本地服务的方法中所述的链路本地地址。In a second aspect, the embodiment of the present application provides a method for generating a link-local address, which is applied to a user equipment, and the method includes: after the user equipment accesses the IPv6 network, obtaining the IPv6 address corresponding to the user equipment Service description information corresponding to the target local service, wherein the service description information includes: a service identifier and a communication protocol; embedding the service description information into the last 64 bits of the IPv6 address to generate the above-mentioned method for obtaining the local service Link-local addresses as described in Methods.
第三方面,本申请实施例提供了一种获取本地服务的装置,应用于用户设备,所述装置包括:确定单元,用于在所述用户设备接入互联网协议第6版IPv6网络后,确定是否接收到路由器通告报文,其中,所述路由器通告报文中携带有用于指示本地服务入口的统一资源标识符URI;第一获取单元,用于若所述确定单元确定未接收到所述路由器通告报文,获取目标本地服务对应的链路本地地址,其中,所述链路本地地址中嵌入有目标本地服务对应的服务描述信息;第二获取单元,用于基于所述链路本地地址,获取所述目标本地服务。In the third aspect, the embodiment of the present application provides a device for obtaining local services, which is applied to user equipment, and the device includes: a determining unit, configured to determine 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 configured to determine that the router advertisement has not been received by the determining unit In the notification message, acquire 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; the second acquiring unit is configured to, based on the link-local address, Get the target local service.
第四方面,本申请实施例提供了一种生成链路本地地址的装置,应用于用户设备,所述装置包括:获得单元,用于在所述用户设备接入IPv6网络后,获得用户设备对应的IPv6地址和目标本地服务对应的服务描述信息,其中,所述服务描述信息包括:服务标识和通讯协议;生成单元,用于将所述服务描述信息嵌入至所述IPv6地址的后64位中,生成上述的获取本地服务的方法中所述的链路本地地址。In a fourth aspect, the embodiment of the present application provides an apparatus for generating a link-local address, which is applied to a user equipment, and the apparatus includes: an obtaining unit, configured to obtain the link-local address corresponding to the user equipment after the user equipment accesses the IPv6 network. The service description information corresponding to the IPv6 address of the target local service, wherein the service description information includes: a service identifier and a communication protocol; a generating unit configured to embed the service description information into the last 64 bits of the IPv6 address , to generate the link-local address described in the above method for obtaining local services.
第五方面,本申请实施例提供了一种计算机可读存储介质,所述存储介质包括存储的程序,其中,在所述程序运行时控制所述存储介质所在用户设备执行上述的获取本地服务的方法或上述的生成链路本地地址的方法的步骤。In the fifth aspect, the embodiment of the present application provides a computer-readable storage medium, the storage medium includes a stored program, wherein, when the program is running, the user equipment where the storage medium is located is controlled to execute the above-mentioned method of obtaining local services method or steps of the above-mentioned method for generating a link-local address.
第六方面,本申请实施例提供了一种用户设备,所述用户设备包括:至少一个处理器;以及与所述处理器连接的至少一个存储器、总线;其中,所述处理器、存储器通过所述总线完成相互间的通信;所述处理器用于调用所述存储器中的程序指令,以执行上述的获取本地服务的方法或上述的生成链路本地地址的方法的步骤。In a sixth aspect, an embodiment of the present application provides a user equipment, including: at least one processor; and at least one memory and a bus connected to the processor; wherein, the processor and the memory are connected through the The bus completes the mutual communication; the processor is used to call the program instructions in the memory to execute the steps of the above-mentioned method for obtaining a local service or the above-mentioned method for generating a link-local address.
本申请实施例提供的获取本地服务、生成链路本地地址的方法及装置,在用户设备接入IPv6网络后,用户设备确定是否接收到路由器通告报文,其中,路由器通告报文中携带有用于指示本地服务入口的统一资源标识符URI;若用户设备确定并未接收到该路由器通告报文,则用户设备获取目标本地服务对应的链路本地地址,其中,链路本地地址中嵌入有目标本地服务对应的服务描述信息;最后,基于该链路本地地址来获取目标本地服务。这样,通过携带有本地服务的服务描述信息的链路本地地址来获取本地服务,能够有效避免依赖DNS服务器、DHCP服务器等其它服务器,只需接入IPv6网络即可获取到所需的目标本地服务,体系结构较为简单,方便部署。In the method and device for acquiring local services and generating a link-local address provided by the embodiments of the present application, after the user equipment accesses the IPv6 network, the user equipment determines whether a router advertisement message is received, 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.
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的其他优点可通过在说明书、权利要求书以及附图中所描述的方案来实现和获得。Additional features and advantages of the application will be set forth in the description which follows, and, in part, will be obvious from the description, or may be learned by practice of the application. Other advantages of the present application can be realized and obtained through the solutions described in the specification, claims and drawings.
附图说明Description of drawings
附图用来提供对本申请技术方案的理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。The accompanying drawings are used to provide an understanding of the technical solution of the present application, and constitute a part of the description, and are used together with the embodiments of the present application to explain the technical solution of the present application, and do not constitute a limitation to the technical solution of the present application.
图1为本申请实施例中的获取本地服务的方法的流程示意图一;FIG. 1 is a first schematic flow diagram of a method for obtaining local services in an embodiment of the present application;
图2为本申请实施例中的链路本地地址的示意图一;FIG. 2 is a first schematic diagram of a link-local address in an embodiment of the present application;
图3为本申请实施例中的链路本地地址的示意图二;FIG. 3 is a second schematic diagram of a link-local address in an embodiment of the present application;
图4为本申请实施例中的获取本地服务的方法的流程示意图二;FIG. 4 is a second schematic flow diagram of a method for obtaining local services in an embodiment of the present application;
图5为本申请实施例中的生成链路本地地址的方法的流程示意图;FIG. 5 is a schematic flowchart of a method for generating a link-local address in an embodiment of the present application;
图6为本申请实施例中的获取本地服务的装置的结构示意图;FIG. 6 is a schematic structural diagram of a device for obtaining local services in an embodiment of the present application;
图7为本申请实施例中的生成链路本地地址的装置的结构示意图;FIG. 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 in conjunction with the drawings in the embodiments of the present application.
本申请实施例提供一种获取本地服务的方法。在实际应用中,该获取本地服务的方法应用于用户设备。图1为本申请实施例中的获取本地服务的方法的流程示意图一,参见图1所示,该获取本地服务的方法可以包括:An embodiment of the present application provides a method for obtaining local services. In practical applications, the method for obtaining local services is applied to user equipment. FIG. 1 is a schematic flow diagram of a method for obtaining local services in the embodiment of the present application. Referring to FIG. 1, the method for obtaining local services 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 a Uniform Resource Identifier (URI) for indicating the entry of the local service.
具体地,若用户设备确定其并未接收到路由器发布的路由器通告报文,则执行S102~S103。Specifically, if the user equipment determines that it has not received the RA message issued by the router, S102-S103 is executed.
S102:获取目标本地服务对应的链路本地地址;S102: Obtain a link-local address corresponding to the target local service;
其中,链路本地地址中嵌入有目标本地服务对应的服务描述信息。Wherein, service description information corresponding to the target local service is embedded in the link-local address.
这里,服务描述信息可以包括:服务标识和通讯协议。Here, the service description information may include: service identifier and communication protocol.
在实际应用中,服务标识为用于表征本地服务的标识。具体来说,服务标识可以为字符串标识,也可以为数字标识,当然,也可以为其它能够唯一标识本地服务的标识。这里,本申请实施例不做具体限定。In practical applications, a service identifier is an identifier used to represent a local service. Specifically, the service identifier may be a string identifier or a digital identifier, and of course, it may also be other identifiers that can uniquely identify the local service. Here, the embodiment of the present application does 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, resolution protocol, etc. that the user equipment needs to follow when accessing 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, assuming that the fire alarm service is realized by using a WWW (World Wide Web, World Wide Web) webpage, 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, Transmission Control Protocol) technology and HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol) technology to access the WWW service on port 80, and the obtained content is XML (Extensible Markup Language , Extensible Markup Language) documentation.
在实际应用中,参见图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 (subnet prefix) used for network routing and the subnet address used in the subnet The last 64 bits of the interface identifier (Interface Id, IID). Generally speaking, the subnet prefix is used by the user equipment through the operator, the Regional Internet Registry (Regional Internet Registry, RIR), the Internet Assigned Numbers Authority (The Internet Assigned Numbers Authority, IANA), etc. Layers are allocated, and 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 manner, or can be generated by a DHCP server in a stateful manner. Then, when facing the IPv6 network, in order to avoid the 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 way to generate a 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 with a specific example.
在本申请另一实施例中,上述S102可以包括以下步骤1021~1022:In another embodiment of the present application, the above 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: service identifier and communication protocol;
具体来说,在用户设备接入到IPv6网络中后,用户设备就可以自动获得到自身的IPv6地址。接下来,作为示例,在用户需要目标本地服务时,用户可以通过输入操作向用户设备输入目标本地服务对应的服务描述信息,或者,用户可以在用户设备上进行选择操作来选出目标本地服务对应的服务描述信息,这样,用户设备就可以根据用户的输入操作或者选择操作,获得用户需要获取的目标本地服务所对应的服务描述信息。从而,用户设备就获得了用户设备所对应的IPv6地址和目标本地服务所对应的服务描述信息。Specifically, after the user equipment is connected to 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 can input the service description information corresponding to the target local service to the user equipment through an input operation, or the user can perform a selection operation on the user equipment to select the target local service corresponding In this way, the user equipment can obtain the service description information corresponding to the target local service that the user needs to obtain 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: Embedding 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 the 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 with 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 ID of the link-local address from various existing interface IDs, the first 48 bits of the last 64 bits of the link-local address can be set to be generated based on 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 based on 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: service identification and communication protocol, then, taking the service identification and communication protocol respectively encoded as 24-bit coded information as an example, thus, in the specific implementation process, the above-mentioned service description information is encoded to obtain the link The steps of the interface identifier of the local address may include: encoding the service identifier to obtain the 24-bit coded information corresponding to the service identifier; encoding the communication protocol to obtain the 24-bit encoded information corresponding to the communication protocol; The corresponding 24-bit coded information, the 24-bit coded information corresponding to the communication protocol, and the preset 16-bit coded 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, referring to 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 inventors of the present application found that the preset The 16-bit encoding information is set to 0, then the first 24 bits of the interface ID of the generated link-local address are the 24-bit encoding information corresponding to the service ID, and the middle 24 bits of the interface ID of the generated link-local address The bit is the 24-bit coded 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 encoding information to 0, you can also set the service identifier Among the 6 bytes in the first 48 bits composed of the corresponding 24-bit code information and the 24-bit code information corresponding to the communication protocol, any byte cannot be 0xFF, and the first byte is not 0, so , the obtained interface identifiers of link-local addresses can be distinguished from most schemes for generating interface identifiers with special semantics. For example, the inventor of the present application found in the process of implementing the embodiment of the present application that in the IVI address generation scheme, there is no case where the last 16 bits of the interface identifier are 0. Here, IVI is a SIIT (Stateless IP/ICMP Translation, stateless IP/ICMP translation) protocol conversion technology, can solve the network layer translation of IPv6 network and IPv4 network packets; and in the lightweight 4over6 (IPv4 overIPv6) solution, 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 artificially specified interface identifiers use the last 16 bits as the IPv4 address part or as a digital identifier, this reserved address space does not conflict with anycast addresses in the subnet. Therefore, as verified by the inventors of the present application during the specific implementation process, it can be seen that the interface identifier of the link-local address in the embodiment of the present application can be well distinguished from various existing interface identifiers, and then the link-local address is based on the link-local address. Access to local services can be achieved 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 coded information corresponding to the service identifier, when the service identifier is a string identifier, you can pass the string encoding The service identifier can be encoded by means of digital encoding; when the service identifier is a digital identifier, the service identifier can also be encoded by digital encoding. Of course, 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, a specific example is used to introduce how to encode the service ID by means of character string encoding.
作为示例,当服务标识为字符串标识时,可以使用6位编码的字符串编码方式来进行编码。其中,服务标识中的每个字符可以被映射为6位编码信息,但是,当需要将服务标识编码为24位编码信息时,表明使用6位编码的字符串编码后最多可容纳4个字符,此时,如果可容纳的字符长度不够,即服务标识的长度比字符串编码后的长度要长时,就需要在尾部补充额外的停止符。As an example, when the service identifier is a character string identifier, a 6-bit encoded character string encoding manner may be used for encoding. Among them, each character in the service identifier can be mapped to 6-bit coded information. However, when the service identifier needs to be encoded into 24-bit coded information, it indicates that the 6-bit coded string can hold up to 4 characters after encoding. At this time, if the length of characters that can be accommodated is not enough, that is, the length of the service identifier is longer than the encoded string, an additional stop character needs to be added at the end.
进一步地,当服务标识为字符串标识时,为了避免与IPv6网络的设置相冲突,在具体实施过程中可以避免使用像“000000”、“111111”这样的6位编码。Furthermore, when the service identifier is a character string identifier, in order to avoid conflicts with the settings of the IPv6 network, the use of 6-bit codes such as "000000" and "111111" can be avoided during specific implementation.
示例性地,可以取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 additional stop character required when the length of the service identifier is longer, Therefore, the total number of characters can be 38. Thus, the 6-bit coding table shown in Table 1 below can be obtained. Next, taking the local service as the local fire alarm service as an example, assuming that the service ID of the fire alarm service is "FIRE", then, after encoding the service ID through the encoding table, the 24 corresponding to the service ID can be obtained. The bit-encoded information is 0x454740.
表1Table 1
其次,以具体实例介绍通过数字编码方式来对服务标识进行编码。Secondly, a specific example is used to introduce the encoding of the service identifier by means of digital encoding.
作为示例,可设置每一个服务标识与一个大于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 coded information (that is, 3-byte coded information) corresponding to the service ID of the service is 0x000001. It should be noted that the above numbers are for example only, and are not specifically limited in this embodiment of the present application.
在实际应用中,为了获得本地服务的通讯协议所对应的24位编码信息,可以通过字符串编码方式来对通讯协议进行编码,也可以通过数字编码方式来对通讯协议进行编码,当然,还可以为其它编码方式来对通讯协议进行编码,这里,本申请实施例不做具体限定。In practical applications, in order to obtain the 24-bit encoding information corresponding to the communication protocol of the local service, the communication protocol can be encoded by string encoding, and the communication protocol can also be encoded by digital encoding. Of course, you can also The communication protocol is encoded in other encoding manners, which are 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 web page, the communication protocol of the fire alarm service can be defined as "TCP_WWW_XML". , because the character strings contained in the communication protocol are often relatively long, in order to facilitate coding, the communication protocol can be coded in a digital coding manner. Exemplarily, the communication protocol can be encoded in an overall manner. For example, "TCP_WWW_XML" can be directly encoded as 1, and the 24-bit encoding information (3-byte encoding information) corresponding to the encoded communication protocol can be 0x000001, or The communication protocol is encoded separately, that is, the three parts of the protocol, port, and resolution format can be encoded separately. For example, if TCP is encoded as 1, WWW is encoded as 1, and XML is encoded as 1, the encoding The 24-bit coded information (3-byte coded information) corresponding to the subsequent 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, firstly, based on the above Table 1 The code table shown encodes the service identification of the fire alarm service through the string encoding method, and the 24-bit encoding information (that is, the 3-byte encoding information) corresponding to the service identification of the fire alarm service can be obtained as 0x454740; and then through the digital encoding method Encode the communication protocol of the fire alarm service, and the 24-bit coded information corresponding to the communication protocol of the fire alarm service (that is, the 3-byte coded information) can be obtained as 0x000001, then the link corresponding to the local fire alarm service for the fire alarm through the WWW The local address of the road can be the address fe80::4547:4000:1:0. Then, when the user needs to make a fire alarm, he can access the port 80 of the local address of the link through the user equipment, and use the WWW form to directly report to the police.
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 local DNS service, local NTP (Network Time Protocol, Network Time Protocol) service, local network authentication service, local network fault report service, local geographic information service, local emergency communication service, local business service , one or more of local network charging services. Certainly, other types of services may also be provided, such as local life information services, etc., 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 address of the network authentication server; 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 information, latitude information and height information of the current geographic location of the user equipment; the local emergency communication service can be used to provide fire alarm numbers, alarm numbers, emergency assistance numbers, etc. Communication numbers; 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, where the service 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, so as to obtain the corresponding local service indicated 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 and domain name resolution in the LAN before network authentication.
至此,便完成了基于携带有本地服务对应的服务描述信息的链路本地地址来获取本地服务的过程。So far, the process of obtaining 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 embodiment of the present application, after the user equipment accesses the IPv6 network, the user equipment can determine whether a router advertisement message is received, wherein the router advertisement message carries information for indicating the local 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 The 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, this embodiment of the present application provides a method for obtaining local services. It can be applied to the following scenarios: the URI used to indicate the entrance of the local service is added in 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 to carry useful information. The router advertisement message is used to indicate the URI of the local service entrance, so that the user equipment can obtain the required local service by accessing the URI.
图4为本申请实施例中的获取本地服务的方法的流程示意图二,参见图4所示,该获取本地服务的方法可以包括:FIG. 4 is a second schematic flow diagram of the method for obtaining local services in the embodiment of the present application. Referring to FIG. 4, the method for obtaining local services may include:
S101:在用户设备接入IPv6网络后,确定是否接收到路由器通告报文;S101: After the user equipment accesses the IPv6 network, determine whether a router advertisement message is received;
其中,路由器通告报文中携带有用于指示本地服务入口的统一资源标识符URI;这里,URI为本地服务入口URI,其中包含各种本地配置、使用、信息等方面的相关内容。Wherein, the router advertisement message carries a Uniform Resource Identifier (URI) for indicating the entry of the local service; here, the URI is the entry URI of the local service, which contains relevant contents of various local configurations, usage, information, and the like.
在实际应用中,在部署IPv6网络时,可以预先在路由器通告中加入了用于指示本地服务入口的URI,而由于路由器会以预设时间间隔定期发送路由器通告报文,那么,在用户设备接入IPv6网络并且完成网络认证后,用户设备就可能会接收到该路由器通告报文。In practical applications, when deploying an IPv6 network, the URI used to indicate the entrance of the local service can be added in the router advertisement in advance, and since the router will periodically send the router advertisement message at a preset time interval, 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 RA 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 8 bytes, and the insufficient part is filled with 0.
需要说明的是,这里,本申请实施例中通过在路由器通告报文中使用一个8字节的选项来提供一个用于指示本地服务入口的URI,再由该URI对应的本地服务主页提供各个本地服务,而并不是直接在路由器通告报文中使用一个1字节的选项来提供一个本地服务,这样,在用于指示本地服务入口的URI不变的情况,无需频繁地对路由器通告报文进行设置,就可以非常方便地实现增加、删除、修改所支持的本地服务,进而,在需要支持更多本地服务时可扩展性较高。It should be noted that, here, in the embodiment of this application, an 8-byte option is used in the router advertisement message to provide a URI used to indicate the entrance of the local service, and then the local service home page corresponding to the URI provides each local service instead of directly using a 1-byte option in the router advertisement message to provide a local service. In this way, when the URI used to indicate the entry of the local service remains unchanged, there is no need to frequently update the router advertisement message Setting, it is very convenient to add, delete, and modify the supported local services, and then, 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 through execution of S101 that the user equipment has obtained a router advertisement message carrying a URI indicating the entrance of the local service, S401-S403 may be executed to obtain the local service based on the URI; and if it is determined through execution of S101 that the user equipment If the device has not obtained the router advertisement message carrying the URI used to indicate the entry of the local service, it may execute S102-S103 to obtain the local service based on the link-local address.
S401:对路由器通告报文进行解析,获得URI;S401: Analyze the router advertisement message to obtain the URI;
作为示例,在非紧急情况下,为了获取到更为详细丰富的本地服务,若用户设备确定接收到携带有用于指示本地服务入口的URI的路由器通告报文,则可以从该路由器通告报文中解析出该URI。As an example, in non-emergency situations, 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 obtain the URI from the router advertisement message. Parses out the URI.
S402:基于URI,访问用于提供本地服务的本地服务主页;S402: Based on the URI, access the homepage 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 home page 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. Of course, the local service homepage may also provide other local services, which are not specifically limited in this embodiment of the present application.
作为示例,该本地服务主页可作为浏览器主页展示,在用户设备访问该URI后,用户设备就可以向用户展示该本地服务主页,其中该本地服务主页中可以展示有多个本地服务,用户可以在该本地服务主页上进行操作,用户设备根据用户的操作从本地服务主页中获取目标本地服务。As an example, the local service homepage can be displayed as a browser homepage. After the user equipment accesses the URI, the user equipment can display the local service homepage to the user, wherein multiple local services can be displayed on the local service homepage, and the user can To operate on the local service homepage, 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 that the method for obtaining local services provided by the embodiment of the present application encodes the service identifier and the communication protocol into a link-local address, so that the user equipment can be connected without relying on DNS and DHCP before going through Internet authentication. In the case of basic infrastructure such as router notifications, access to local services that can be realized without accessing the Internet, such as emergency communication services, alarm services, etc.; The URI used to indicate the entry of local services to obtain more detailed local services.
基于同一发明构思,本申请实施例提供一种生成链路本地地址的方法。图5为本申请实施例中的生成链路本地地址的方法的流程示意图,参见图5所示,该生成链路本地地址的方法可以包括:Based on the same inventive concept, an embodiment of the present application provides 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 represent a local service. The communication protocol refers to the communication, entry port, and resolution protocol that must be followed to access local services.
S502:将服务描述信息嵌入至IPv6地址的后64位中,生成链路本地地址。S502: Embedding 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 above 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 a link-local address.
为了更好地将所获得的链路本地地址的接口标识与现有的各种接口标识区分,可以将链路本地地址的后64位中的前48位设置为基于服务描述信息生成的编码信息,并将该链路本地地址的后64位中的后16位设置为由本领域技术人员根据实际经验预先设置的编码信息,即根据服务描述信息生成的编码信息和预先设置的编码信息来生成链路本地地址。这样,由于服务描述信息包括:服务标识和通讯协议,那么,在具体实施过程中,上述步骤5021可以包括:对服务标识进行编码,获得服务标识所对应的24位信息;对通讯协议进行编码,获得通讯协议所对应的24位信息;将服务标识所对应的24位信息、通讯协议所对应的24位信息和预先设置的16位信息依次拼接,获得链路本地地址的接口标识。In order to better distinguish the interface identifier of the obtained link-local address from the existing various interface identifiers, the first 48 bits of the last 64 bits of the link-local address can be set as encoding information generated based on service description information , and set the last 16 bits of the last 64 bits of the link-local address as coded information preset by those skilled in the art based on actual experience, that is, to generate a link based on the coded information generated from the service description information and the preset coded information. Road local address. In this way, since the service description information includes: service identification and communication protocol, then, in the specific implementation process, the above step 5021 may include: encoding the service identification to obtain 24-bit information corresponding to the service identification; encoding the communication protocol, The 24-bit information corresponding to the communication protocol is obtained; the 24-bit information corresponding to the service identification, the 24-bit information corresponding to the communication protocol, and the preset 16-bit information are sequentially spliced to obtain the interface identification of the link local address.
需要说明的是,本申请实施例中的链路本地地址与上述一个或多个实施例中的是一致的,对于本申请实施例中未披露的技术细节,请参照上述一个或多个实施例中链路本地地址的描述而理解,这里,本申请实施例不再做过多赘述。It should be noted that the link-local address in the embodiment of this application is consistent with that in one or more of the above embodiments. For the technical details not disclosed in the embodiment of this application, please refer to the above one or more embodiments It should be understood from the description of the link-local address, and here, the embodiment of the present application will not repeat it again.
由上述内容可知,本申请实施例提供的生成链路本地地址的方法,在用户设备接入IPv6网络后,获得用户设备对应的IPv6地址和目标本地服务对应的服务描述信息,其中,服务描述信息包括:服务标识和通讯协议,然后将服务描述信息嵌入至IPv6地址的后64位中,生成链路本地地址。这样,通过将目标本地服务所对应的描述信息编码到链路本地地址中,就可以实现不依赖DNS服务器、DHCP服务器等其它服务器,只需接入IPv6网络即可基于获取该链路本地地址到所需的目标本地服务,体系结构较为简单,方便部署。It can be seen from the above that the method for generating a link-local address provided by the embodiment of the present application obtains the IPv6 address corresponding to the user equipment and the service description information corresponding to the target local service after the user equipment accesses the IPv6 network, wherein the service description information It includes: service identification and communication protocol, and then embeds service description information into the last 64 bits of the IPv6 address to generate a link-local address. In this way, by encoding the description information corresponding to the target local service into the link-local address, it is possible to achieve independent of DNS server, DHCP server and other servers, and only need to access the IPv6 network to obtain the link-local address based on the link-local address. 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 obtaining local services. In practical applications, the apparatus for obtaining local services can be applied in user equipment. FIG. 6 is a schematic structural diagram of an apparatus for obtaining local services in an embodiment of the present application. Referring to FIG. 6 , the apparatus 60 may include: a determining unit 601 configured to, after the user equipment accesses the Internet Protocol Version 6 IPv6 network, Determine 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 602 is configured to determine that the router advertisement message has not been received, Obtaining a link-local address corresponding to the target local service, wherein service description information corresponding to the target local service is embedded in the link-local address; the second obtaining unit 603 is configured to obtain the target local service based on the link-local address.
在本申请实施例中,第一获取单元,用于获得用户设备对应的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 into 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 acquisition unit is configured to encode the service description information to obtain the interface identifier of the link-local address; splice the subnet prefix in the IPv6 address with 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 acquisition unit is used to encode the service identifier to obtain the 24-bit coded information corresponding to the service identifier; to encode the communication protocol to obtain the 24-bit coded information corresponding to the communication protocol; The 24-bit encoding information corresponding to the identification, the 24-bit encoding information corresponding to the communication protocol, and the preset 16-bit encoding information are spliced to obtain the interface identification of the link-local address.
在本申请实施例中,第二获取单元,用于通过通讯协议,访问链路本地地址,获取服务标识所对应的目标本地服务。In the embodiment of the present application, the second acquiring unit is configured to access the link-local address through the communication protocol, and acquire the target local service corresponding to the service identifier.
在本申请其它实施例中,上述获取本地服务的装置,还可以包括:解析单元,用于若确定单元确接收到路由器通告报文,对路由器通告报文进行解析,获得URI;访问单元,用于基于URI,访问用于提供本地服务的本地服务主页;第三获取单元,用于从本地服务主页中获取目标本地服务。In other embodiments of the present application, the above-mentioned device for obtaining local services may further include: a parsing unit configured to parse the router notification message to obtain the URI if the determining unit does receive the router notification message; the access unit uses Based on the URI, access the local service homepage for providing the local service; the third acquisition unit is used to acquire the target local service from the local service homepage.
在本申请实施例中,上述本地服务主页,可以包括:本地域名系统DNS服务、本地网络时间协议NTP服务、本地网络认证服务、本地网络故障报修服务、本地地理信息服务、本地紧急通讯服务、本地商业服务、本地网络收费服务中的一种或多种。In the embodiment of the present application, the above-mentioned local service home page may include: local domain name system DNS service, local network time protocol NTP service, local network authentication service, local network fault report 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 foregoing method, an embodiment of the present application provides an apparatus for generating a link-local address. In practical applications, the device for generating a link-local address can be applied in 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 apparatus 70 may include: an obtaining unit 701 for accessing an Internet Protocol version 6 IPv6 network in a user equipment Afterwards, the service description information corresponding to the IPv6 address corresponding to the user equipment and the target local service is obtained, wherein the service description information includes: a service identifier and a communication protocol; a generation unit 702 is configured to embed the service description information into the last 64 bits of the IPv6 address In the above one or more embodiments, the link-local address is generated.
在本申请实施例中,生成单元,用于对服务描述信息进行编码,获得链路本地地址的接口标识;将IPv6地址中的子网前缀与链路本地地址的接口标识进行拼接,生成链路本地地址。In the embodiment of the present application, the 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 a link local address.
在本申请实施例中,生成单元,用于对服务标识进行编码,获得服务标识所对应的24位编码信息;对通讯协议进行编码,获得通讯协议所对应的24位编码信息;将服务标识所对应的24位编码信息、通讯协议所对应的24位编码信息和预先设置的16位编码信息进行拼接,获得链路本地地址的接口标识。In the embodiment of the present application, the generation unit is used to encode the service identifier to obtain the 24-bit coded information corresponding to the service identifier; to encode the communication protocol to obtain the 24-bit coded information corresponding to the communication protocol; The corresponding 24-bit coded information, the 24-bit coded information corresponding to the communication protocol, and the preset 16-bit coded 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 user equipment 80 includes: at least one processor 81; and at least one memory 82 and a bus 83 connected to the processor 81; wherein, The processor 81 and the memory 82 communicate with each other through the bus 83; the processor 81 is used to call the program instructions in the memory 82 to execute the steps of the method for obtaining local services in one or more of the above embodiments.
相应地,基于同一发明构思,本申请实施例还提供了一种处理器,处理器用于运行程序,其中,程序运行时执行上述一个或多个实施例中的获取本地服务的方法的步骤。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 above 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),存储器包括至少一个存储芯片。Above-mentioned processor can be by central processing unit (Central Processing Unit, CPU), microprocessor (MicroProcessor Unit, MPU), digital signal processor (Digital Signal Processor, DSP), or Field Programmable Gate Array (Field Programmable Gate Array, FPGA) ) and so on. Memory may include non-permanent memory in computer-readable media, random access memory (Random Access Memory, RAM) and/or non-volatile memory, such as read-only memory (Read Only Memory, ROM) or flash memory (Flash RAM ), the memory includes at least one memory chip.
需要说明的是,在本申请实施例中,如果以软件功能模块的形式实现上述一个或多个实施例中的获取本地服务的方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台用户设备(可以是个人计算机、服务器、或者网络设备等)执行本申请各个实施例方法的全部或部分。It should be noted that, in this embodiment of the 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 this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for Make a user equipment (which may be a personal computer, server, or network equipment, etc.) execute all or part of the methods in 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, the above-mentioned computer-readable storage medium includes a stored program, wherein, when the program is running, the user equipment where the storage medium is located is controlled to execute the above-mentioned one or more The steps of the method for obtaining local services in an embodiment.
这里需要指出的是:以上装置、用户设备或计算机可读存储介质实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请装置、用户设备或计算机可读存储介质实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。It should be pointed out here that: the description of the above embodiment of the device, user equipment or computer-readable storage medium is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. 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.
本申请描述了多个实施例,但是该描述是示例性的,而不是限制性的,并且对于本领域的普通技术人员来说显而易见的是,在本申请所描述的实施例包含的范围内可以有更多的实施例和实现方案。尽管在附图中示出了许多可能的特征组合,并在具体实施方式中进行了讨论,但是所公开的特征的许多其它组合方式也是可能的。除非特意加以限制的情况以外,任何实施例的任何特征或元件可以与任何其它实施例中的任何其他特征或元件结合使用,或可以替代任何其它实施例中的任何其他特征或元件。The application describes a number of embodiments, but the description is illustrative rather than restrictive, and it will be obvious to those of ordinary skill in the art that within the scope of the embodiments described in the application, There are many more embodiments 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. Except where expressly limited, any feature or element of any embodiment may be used in combination with, or substituted for, any other feature or element of any other embodiment.
本申请包括并设想了与本领域普通技术人员已知的特征和元件的组合。本申请已经公开的实施例、特征和元件也可以与任何常规特征或元件组合,以形成由权利要求限定的独特的发明方案。任何实施例的任何特征或元件也可以与来自其它发明方案的特征或元件组合,以形成另一个由权利要求限定的独特的发明方案。因此,应当理解,在本申请中示出和/或讨论的任何特征可以单独地或以任何适当的组合来实现。因此,除了根据所附权利要求及其等同替换所做的限制以外,实施例不受其它限制。此外,可以在所附权利要求的保护范围内进行各种修改和改变。This application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The disclosed embodiments, features and elements of this application can also be combined with any conventional features or elements to form unique inventive solutions as defined by the claims. Any feature or element of any embodiment may also be combined with features or elements from other inventive solutions to form yet another unique inventive solution as defined by the claims. It is therefore to be understood that any of the features shown and/or discussed in this application can 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 a method and/or process as a particular sequence of steps. However, to the extent the method or process is not dependent 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 also possible, as will be appreciated by those of ordinary skill in the art. Therefore, the specific order of the steps set forth in the specification should not be construed as limitations on the claims. In addition, claims for the method and/or process should not be limited to performing their steps in the order written, those skilled in the art can easily understand that these orders can be changed 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, the functional modules/units in the system, and the device can be implemented as software, firmware, hardware, and an appropriate combination 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 cooperate to execute. 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 known to those of ordinary skill in the art, the term computer storage media includes both volatile and nonvolatile media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. permanent, removable and non-removable media. Computer storage media includes, but is 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, tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, 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 may include any information delivery media .
Claims (14)
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 true CN110601984A (en) | 2019-12-20 |
CN110601984B 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) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111352748A (en) * | 2020-02-26 | 2020-06-30 | 北京思特奇信息技术股份有限公司 | Interface calling method and device, electronic equipment and storage medium |
CN112702191A (en) * | 2020-12-11 | 2021-04-23 | 福建天晴在线互动科技有限公司 | Link tracking method and terminal |
CN119254744A (en) * | 2024-12-04 | 2025-01-03 | 浙江竞高信息技术有限公司 | A device networking method and system based on IPv6 protocol |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030236897A1 (en) * | 2002-05-15 | 2003-12-25 | Canon Kabushiki Kaisha | Information processing system, information processing apparatus and method, program, and storage medium |
CN1499396A (en) * | 2002-10-24 | 2004-05-26 | �Ҵ���˾ | Method and device for maintaining internet field names data |
CN101179603A (en) * | 2006-11-09 | 2008-05-14 | 上海贝尔阿尔卡特股份有限公司 | Method and device for controlling user network access in IPv6 network |
CN102067570A (en) * | 2008-06-24 | 2011-05-18 | 高通股份有限公司 | Method and apparatus for ensuring IPv6 uniqueness in a mobile subnetted environment |
CN102457548A (en) * | 2010-10-20 | 2012-05-16 | 中兴通讯股份有限公司 | Method and device for obtaining IPv6 (Internet Protocol version 6) interface identifier |
CN102938735A (en) * | 2012-11-15 | 2013-02-20 | 北京邮电大学 | Method utilizing router advertisement carrying options to issue network address translator (NAT) 64 address prefix |
CN105359458A (en) * | 2013-10-18 | 2016-02-24 | 华为技术有限公司 | Network device communication method and network device |
CN107547528A (en) * | 2017-08-18 | 2018-01-05 | 新华三技术有限公司 | IPv6 stateless address distribution method and device |
CN108881520A (en) * | 2018-08-30 | 2018-11-23 | 中国联合网络通信集团有限公司 | A kind of distribution method and SMF, communication system of the address IPv6 |
-
2019
- 2019-09-20 CN CN201910891163.6A patent/CN110601984B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030236897A1 (en) * | 2002-05-15 | 2003-12-25 | Canon Kabushiki Kaisha | Information processing system, information processing apparatus and method, program, and storage medium |
CN1499396A (en) * | 2002-10-24 | 2004-05-26 | �Ҵ���˾ | Method and device for maintaining internet field names data |
CN101179603A (en) * | 2006-11-09 | 2008-05-14 | 上海贝尔阿尔卡特股份有限公司 | Method and device for controlling user network access in IPv6 network |
CN102067570A (en) * | 2008-06-24 | 2011-05-18 | 高通股份有限公司 | Method and apparatus for ensuring IPv6 uniqueness in a mobile subnetted environment |
CN102457548A (en) * | 2010-10-20 | 2012-05-16 | 中兴通讯股份有限公司 | Method and device for obtaining IPv6 (Internet Protocol version 6) interface identifier |
CN102938735A (en) * | 2012-11-15 | 2013-02-20 | 北京邮电大学 | Method utilizing router advertisement carrying options to issue network address translator (NAT) 64 address prefix |
CN105359458A (en) * | 2013-10-18 | 2016-02-24 | 华为技术有限公司 | Network device communication method and network device |
CN107547528A (en) * | 2017-08-18 | 2018-01-05 | 新华三技术有限公司 | IPv6 stateless address distribution method and device |
CN108881520A (en) * | 2018-08-30 | 2018-11-23 | 中国联合网络通信集团有限公司 | A kind of distribution method and SMF, communication system of the address IPv6 |
Non-Patent Citations (3)
Title |
---|
F. GONT,ET AL.: ""RFC7707 Network Reconnaissance in IPv6 Networks"", 《INTERNET ENGINEERING TASK FORCE,IETF》 * |
R. HINDEN.ET AL.: ""RFC3513 Internet Protocol Version 6 (IPv6) Addressing Architecture"", 《THE INTERNET ENGINEERING TASK FORCE,IETF》 * |
张千里,等: ""IPv6地址结构标准化研究综述"", 《计算机学报》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111352748A (en) * | 2020-02-26 | 2020-06-30 | 北京思特奇信息技术股份有限公司 | Interface calling method and device, electronic equipment and storage medium |
CN111352748B (en) * | 2020-02-26 | 2023-12-05 | 北京思特奇信息技术股份有限公司 | Interface calling method and device, electronic equipment and storage medium |
CN112702191A (en) * | 2020-12-11 | 2021-04-23 | 福建天晴在线互动科技有限公司 | Link tracking method and terminal |
CN119254744A (en) * | 2024-12-04 | 2025-01-03 | 浙江竞高信息技术有限公司 | A device networking method and system based on IPv6 protocol |
CN119254744B (en) * | 2024-12-04 | 2025-02-18 | 浙江竞高信息技术有限公司 | Equipment networking method and system based on IPv6 protocol |
Also Published As
Publication number | Publication date |
---|---|
CN110601984B (en) | 2020-10-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10044816B2 (en) | Location-based domain name system service discovery | |
CN108848100B (en) | A stateful IPv6 address generation method and device | |
CN110601984B (en) | Method and device for acquiring local service and generating link local address | |
US11438427B2 (en) | Discovery of resources in a local network | |
US10645057B2 (en) | Domain name system identification and attribution | |
JP2019507994A (en) | Method and apparatus for intelligent domain name system transfer | |
CN102790813B (en) | Communication method as well as system and terminal equipment based on IPv6 (internet protocol version 6) network | |
KR20040065643A (en) | Method for performing automatic registration of IP address and IP domain name in IP protocol version 6 | |
BRPI0822330B1 (en) | METHOD OF ACQUISITION OF SERVER IDENTIFIER BASED ON DEVICE LOCATION, APPLIANCE, DOMAIN NAME SYSTEM, SYSTEM FOR SIGNALING CONTROL INFORMATION AND MOBILE DEVICE | |
US7930370B2 (en) | Method and system for remote configuration of managed nodes | |
JP6905551B2 (en) | Network equipment | |
JP6963052B2 (en) | IPv6 multicast address generation | |
CN102547553B (en) | Method, system and device for accessing service based on wireless application protocol (WAP) | |
CN103581353B (en) | The method of automatic configuration and system of gateway device | |
CN108494751A (en) | The method and device of the publicly-owned addresses effective use IPv4 | |
CN103634396A (en) | Method, gateway equipment and system for accessing intranet webpage service data | |
CN103118145A (en) | IPv4-over-IPv6 multi-tunnel automatic establishment method based on DNS (domain name system) | |
CN102035899A (en) | Method and device for determining addresses in IPv6 (internet protocol version 6) based LAN (local area network) | |
CN116566945A (en) | Access method, device, electronic device and storage medium of decentralized application | |
CN104506665B (en) | Distinguish method and system in a kind of IPv4/IPv6 addresses | |
CN103825763B (en) | The method and system that a kind of user traces to the source | |
CN115428415A (en) | System and method for forwarding packets in a hierarchical network architecture using variable length addresses | |
JP2019087908A (en) | IPv6 network system, home gateway device, migration technology application method, and application program | |
CN114731338A (en) | System and method for controlling load of domain name system server | |
CN107995325A (en) | A kind of method that domain name mapping failure is reduced on Android |
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 |