WO2020147610A1 - Address configuration method and device for terminal - Google Patents
Address configuration method and device for terminal Download PDFInfo
- Publication number
- WO2020147610A1 WO2020147610A1 PCT/CN2020/070582 CN2020070582W WO2020147610A1 WO 2020147610 A1 WO2020147610 A1 WO 2020147610A1 CN 2020070582 W CN2020070582 W CN 2020070582W WO 2020147610 A1 WO2020147610 A1 WO 2020147610A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- address
- gateway
- terminal
- target
- pool
- 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.)
- Ceased
Links
Images
Classifications
-
- 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
-
- 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
-
- 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/5061—Pools of addresses
Definitions
- This application relates to the field of communication technology, and in particular to a method for configuring an address of a terminal and an address configuring device of a terminal.
- LoRa is an ultra-long-distance transmission scheme based on spread spectrum technology in the Internet of Things, which has the characteristics of long transmission distance, low power consumption, multiple nodes and low cost.
- the LoRa network includes terminals, base stations and servers.
- the working modes of the terminal include ClassA mode, ClassB mode, and ClassC mode.
- ClassB mode the terminal will open a receiving window within a foreseeable time, and this window is called a Pingslot.
- the communication modes of the terminal include unicast and multicast.
- Unicast The server configures a unique address identifier DebAddr for each terminal, and the server calculates the Class B downlink frequency and time window of the terminal according to this address. The server sends a message to the device separately at this frequency and time window.
- the server configures a unique address identifier McAddr for each LoRa multicast group, and the server calculates the Class B downlink frequency and time window common to multiple terminals in this multicast group based on this address.
- the server sends a group message to all terminals in the multicast group at this frequency and time window.
- the terminal When the terminal has two communication modes: unicast and multicast, its unicast address Pingslot and its multicast address Pingslot may overlap, but the unicast frequency and multicast frequency are not the same. At this time, the terminal can only fix the monitoring group Broadcast/unicast frequency point, and periodically miss unicast/multicast downlink data, and even never receive unicast/multicast downlink data.
- the embodiments of the present application are proposed to provide a method for configuring an address of a terminal and a corresponding device for configuring an address of a terminal, which overcomes or at least partially solves the foregoing problem.
- an embodiment of the present application discloses a method for configuring an address of a terminal, which is applied to a server, and the method includes:
- the server When the server receives the address configuration request, it determines the gateway corresponding to the address configuration request;
- Optional also includes:
- the determining the address pool corresponding to the gateway from a plurality of preset address pools includes:
- an address pool corresponding to the gateway is determined from a plurality of preset address pools.
- the determining the address pool corresponding to the gateway from a plurality of preset address pools according to the number of downlink channels of the gateway includes:
- multiple address pools corresponding to the gateway are determined from multiple preset address pools; wherein there are unused frequencies between the multiple address pools. point.
- the selecting a target address from an address pool corresponding to the gateway and configuring the target address to the terminal corresponding to the address configuration request includes:
- the address configuration request is an address configuration request for a multicast address, and the terminal has been configured with a unicast address in advance, then select an address from the address pool where the unicast address is located as the target address;
- the target address is configured as the multicast address of the terminal.
- the selecting a target address from an address pool corresponding to the gateway and configuring the target address to the terminal corresponding to the address configuration request includes:
- the address configuration request is an address configuration request for a unicast address, and the terminal has been configured with a multicast address in advance, an address is selected as the target address from the address pool where the multicast address is located;
- the target address is configured as the unicast address of the terminal.
- the selecting a target address from an address pool corresponding to the gateway and configuring the target address to the terminal corresponding to the address configuration request includes:
- the address configuration request is an address configuration request for a unicast address and a multicast address
- two addresses are selected as target addresses from an address pool corresponding to the gateway
- the target addresses are respectively configured as the unicast address and the multicast address of the terminal.
- the PingSlot frequency points of addresses in different address pools are different.
- the embodiment of the present application also discloses an address configuration device of a terminal, the device is set in a server, and the device includes:
- the gateway determination module is used to determine the gateway corresponding to the address configuration request when the server receives the address configuration request;
- the terminal address configuration module is used to select a target address from an address pool corresponding to the gateway, and configure the target address to the terminal corresponding to the address configuration request, so that the multicast address of the terminal and the single The broadcast addresses are located in the same address pool; among them, the pulse timeslot PingSlot frequency point of each address pool address is the same.
- Optional also includes:
- the gateway address pool determining module is used to determine the address pool corresponding to the gateway from a plurality of preset address pools.
- the gateway address pool determining module includes:
- the number of downlink channels determining sub-module is used to determine the number of downlink channels of the gateway
- the gateway address pool determining submodule is configured to determine the address pool corresponding to the gateway from a plurality of preset address pools according to the number of downlink channels of the gateway.
- the gateway address pool determining submodule includes:
- the first gateway address pool determining unit is configured to, if the number of downlink channels of the gateway is one, determine an address pool corresponding to the gateway from a plurality of preset address pools;
- the second gateway address pool determining unit is configured to, if the number of downlink channels of the gateway is multiple, determine multiple address pools corresponding to the gateway from the multiple preset address pools; wherein the multiple address pools There are unused frequency points between the two.
- the terminal address configuration module includes:
- the first target address selection submodule is used to select from the address pool where the unicast address is located if the address configuration request is an address configuration request for a multicast address, and the terminal has been previously configured with a unicast address Select an address as the target address;
- the first target address configuration submodule is configured to configure the target address as a multicast address of the terminal.
- the terminal address configuration module includes:
- the second target address selection sub-module is configured to, if the address configuration request is an address configuration request for a unicast address, and the terminal has been configured with a multicast address in advance, then from the address pool where the multicast address is located Select an address as the target address;
- the second target address configuration submodule is configured to configure the target address as the unicast address of the terminal.
- the terminal address configuration module includes:
- the third target address selection sub-module is configured to select two addresses as target addresses from an address pool corresponding to the gateway if the address configuration request is an address configuration request for a unicast address and a multicast address;
- the third target address configuration submodule is configured to configure the target address as the unicast address and the multicast address of the terminal respectively.
- the PingSlot frequency points of addresses in different address pools are different.
- the embodiment of the application also discloses a device, including:
- One or more processors are One or more processors.
- the embodiment of the present application also discloses one or more machine-readable media, on which instructions are stored, which when executed by one or more processors, cause the processors to execute one or more of the methods described above.
- the target address can be selected from an address pool corresponding to the gateway, and the target address can be configured to the terminal, so that the multicast address and unicast address configured for the terminal are in the same address pool.
- the PingSlot frequency of the addresses in the same address pool is the same, so the frequency of the multicast address is the same as the frequency of the unicast address, and there will be no loss due to the difference between the frequency of the multicast address and the frequency of the unicast address The case of unicast downlink data or multicast downlink data.
- FIG. 1 is a flowchart of the steps of Embodiment 1 of a method for configuring an address of a terminal according to the present application;
- Embodiment 2 is a flowchart of the steps of Embodiment 2 of a terminal address configuration method of the present application;
- FIG. 3 is a schematic diagram of dividing an address pool in an embodiment of the present application.
- FIG. 4 is a schematic diagram of determining the address pool of the corresponding gateway in an embodiment of the present application.
- Fig. 5 is a structural block diagram of an embodiment of a terminal address configuration device of the present application.
- Embodiment 1 of a terminal address configuration method of the present application which may specifically include the following steps:
- Step 101 When the server receives an address configuration request, it determines the gateway corresponding to the address configuration request;
- the terminal is a ClassB mode terminal.
- the terminal accesses the network, the terminal sends an address configuration request to the gateway, and then the gateway forwards the address configuration request to the server.
- the server is deployed with an address allocator, and the address configuration request includes the terminal identifier DevEUI and the gateway identifier GWEUI.
- the address allocator may determine which terminal sent the address configuration request according to the terminal identifier, and determine which gateway forwarded the address configuration request according to the gateway identifier.
- Step 102 Select a target address from an address pool corresponding to the gateway, and configure the target address to the terminal corresponding to the address configuration request, so that the multicast address and the unicast address of the terminal are in the same In an address pool; among them, the pulse time slot PingSlot frequency point of each address pool address is the same.
- the address allocator can select at least one corresponding address pool for the gateway.
- Each address pool contains multiple addresses.
- the addresses belonging to the same address pool have the same PingSlot frequency and belong to different address pools.
- the PingSlot frequency points are different.
- the target address can be selected from an address pool corresponding to the gateway, and the target address can be configured to the terminal, so that the multicast address and unicast address configured for the terminal are in the same address pool.
- the PingSlot frequency of the addresses in the same address pool is the same, so the frequency of the multicast address is the same as the frequency of the unicast address, and there will be no loss due to the difference between the frequency of the multicast address and the frequency of the unicast address The case of unicast downlink data or multicast downlink data.
- Embodiment 2 of a terminal address configuration method of the present application may specifically include the following steps:
- Step 201 When the server receives the address configuration request, it determines the gateway corresponding to the address configuration request;
- the terminal is a ClassB mode terminal.
- the terminal accesses the network, the terminal sends an address configuration request to the gateway, and then the gateway forwards the address configuration request to the server.
- the server is deployed with an address allocator, and the address configuration request includes the terminal identifier DevEUI and the gateway identifier GWEUI.
- the address allocator can determine which terminal sent the address configuration request according to the terminal identifier, and which gateway forwarded the address configuration request according to the gateway identifier.
- Step 202 Determine an address pool corresponding to the gateway from a plurality of preset address pools.
- the address allocator can determine the corresponding address pool for the gateway corresponding to the address configuration request from a plurality of preset address pools.
- Each address pool contains multiple addresses. Addresses belonging to the same address pool have the same PingSlot frequency points, but addresses belonging to different address pools have different PingSlot frequency points.
- the CN470 frequency band is a frequency band allocated for use in China. All addresses in this frequency band can be divided into 8 address pools.
- the CN470 frequency band can also be divided into other number of address pools; for example, if the network deploys a 16-channel gateway, the CN470 frequency band can be divided into 16 address pools; if If the network deploys 32-channel gateways, the CN470 frequency band can be divided into 32 address pools.
- the way of dividing the address pool can be determined according to actual conditions, which is not limited in the embodiment of the present application.
- the formula for calculating the frequency of the Class B downlink channel based on the unicast address in the CN470 frequency band is:
- the formula for calculating the frequency of the Class B downlink channel based on the multicast address in the CN470 frequency band is:
- floor() is a function rounded down
- modulo is a modulo operation
- beacon_time is the beacon frame duration
- beacon_period is the beacon frame period.
- the step 202 may include the following sub-steps:
- Sub-step S11 determining the number of downlink channels of the gateway
- the address allocator can look up the number of downlink channels of the gateway from the database according to the gateway identifier in the address configuration request;
- Sub-step S12 According to the number of downlink channels of the gateway, an address pool corresponding to the gateway is determined from a plurality of preset address pools.
- the address allocator can determine the address pool corresponding to the gateway from multiple preset address pools according to the number of downlink channels of the gateway.
- the sub-step S12 may further include:
- Sub-step S121 if the number of downlink channels of the gateway is one, determine an address pool corresponding to the gateway from a plurality of preset address pools;
- sub-step S122 if the number of downlink channels of the gateway is multiple, determine multiple address pools corresponding to the gateway from the multiple preset address pools; wherein there is an interval between the multiple address pools. Unused frequency points.
- Adjacent channel interference is a common interference problem, not only in multi-channel multicast, but also in multi-channel unicast downlink.
- the address allocator can determine multiple corresponding address pools for the gateway, and there are unused frequency points between the multiple address pools. It can make the frequency interval between the downlink channels and solve the problem of adjacent channel interference.
- FIG. 4 is a schematic diagram of determining the address pool of the corresponding gateway in an embodiment of this application.
- Step 203 Select a target address from an address pool corresponding to the gateway, and configure the target address to the terminal corresponding to the address configuration request, so that the multicast address and the unicast address of the terminal are in the same location.
- the pulse time slot PingSlot frequency point of each address pool address is the same.
- the address configuration request may include the type of address to be requested.
- the address configuration request may include an address configuration request for a multicast address, an address configuration request for a unicast address, and an address configuration request for a unicast address and a multicast address.
- An address configuration request for a multicast address indicates that the terminal needs to request a multicast address
- an address configuration request for a unicast address indicates that the terminal needs to request a unicast address
- an address configuration request for a unicast address and a multicast address indicates that the terminal needs to request unicast Address and multicast address.
- the step 203 may include:
- the address configuration request is an address configuration request for a multicast address, and the terminal has been configured with a unicast address in advance, then select an address from the address pool where the unicast address is located as the target address; The target address is configured as the multicast address of the terminal.
- the address configuration request is an address configuration request for a multicast address, and the terminal has not been configured with a unicast address before, a target address is selected from any address pool corresponding to the gateway, and the target The address is configured as the multicast address of the terminal.
- the step 203 may include:
- the address configuration request is an address configuration request for a unicast address, and the terminal has been configured with a multicast address in advance, an address from the address pool where the multicast address is located is selected as the target address; The target address is configured as the unicast address of the terminal.
- the address configuration request is an address configuration request for a unicast address, and the terminal has not been previously configured with a multicast address, a target address is selected from any address pool corresponding to the gateway; The address is configured as the unicast address of the terminal.
- the step 203 may include:
- the address configuration request is an address configuration request for a unicast address and a multicast address
- the target address can be selected from an address pool corresponding to the gateway, and the target address can be configured to the terminal, so that the multicast address and the unicast address configured for the terminal are in the same address pool.
- the PingSlot frequency of the addresses in the same address pool is the same, so the frequency of the multicast address is the same as the frequency of the unicast address, and there will be no loss due to the difference between the frequency of the multicast address and the frequency of the unicast address The case of unicast downlink data or multicast downlink data.
- FIG. 5 there is shown a structural block diagram of an embodiment of a device for configuring an address of a terminal according to the present application.
- the device is set on a server, and the device may specifically include the following modules:
- the gateway determining module 501 is configured to determine the gateway corresponding to the address configuration request when the server receives the address configuration request;
- the terminal address configuration module 502 is configured to select a target address from an address pool corresponding to the gateway, and configure the target address to the terminal corresponding to the address configuration request, so that the multicast address of the terminal and Unicast addresses are located in the same address pool; among them, the pulse time slot PingSlot frequency point of each address pool address is the same.
- the PingSlot frequency points of addresses in different address pools are different.
- the device may further include:
- the gateway address pool determining module is used to determine the address pool corresponding to the gateway from a plurality of preset address pools.
- the gateway address pool determining module may include:
- the number of downlink channels determining sub-module is used to determine the number of downlink channels of the gateway
- the gateway address pool determining submodule is configured to determine the address pool corresponding to the gateway from a plurality of preset address pools according to the number of downlink channels of the gateway.
- the gateway address pool determining submodule includes:
- the first gateway address pool determining unit is configured to, if the number of downlink channels of the gateway is one, determine an address pool corresponding to the gateway from a plurality of preset address pools;
- the second gateway address pool determining unit is configured to, if the number of downlink channels of the gateway is multiple, determine multiple address pools corresponding to the gateway from the multiple preset address pools; wherein the multiple address pools There are unused frequency points between the two.
- the terminal address configuration module 502 may include:
- the first target address selection submodule is used to select from the address pool where the unicast address is located if the address configuration request is an address configuration request for a multicast address, and the terminal has been previously configured with a unicast address Select an address as the target address;
- the first target address configuration submodule is configured to configure the target address as a multicast address of the terminal.
- the terminal address configuration module 502 may include:
- the second target address selection sub-module is configured to, if the address configuration request is an address configuration request for a unicast address, and the terminal has been configured with a multicast address in advance, then from the address pool where the multicast address is located Select an address as the target address;
- the second target address configuration submodule is configured to configure the target address as the unicast address of the terminal.
- the terminal address configuration module 502 may include:
- the third target address selection sub-module is configured to select two addresses as target addresses from an address pool corresponding to the gateway if the address configuration request is an address configuration request for a unicast address and a multicast address;
- the third target address configuration submodule is configured to configure the target address as the unicast address and the multicast address of the terminal respectively.
- the description is relatively simple, and the relevant part can be referred to the description of the method embodiment.
- An embodiment of the present application also provides a device, including:
- One or more processors are One or more processors.
- the embodiments of the present application also provide one or more machine-readable media on which instructions are stored, which, when executed by one or more processors, cause the processors to execute the methods described in the embodiments of the present application.
- the embodiments of the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present application may take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
- computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
- each flow and/or block in the flowchart and/or block diagram and a combination of the flow and/or block in the flowchart and/or block diagram may be implemented by computer program instructions.
- These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine so that the instructions executed by the processor of the computer or other programmable data processing terminal device Means for generating the functions specified in a block or blocks of a flowchart or a flow and/or a block diagram.
- These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing terminal equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
- the instruction device realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
- These computer program instructions can also be loaded on a computer or other programmable data processing terminal device, so that a series of operation steps are performed on the computer or other programmable terminal device to generate computer-implemented processing, so that the computer or other programmable terminal device
- the instructions executed above provide steps for implementing the functions specified in one flow or flow of the flowchart and/or one block or flow of the block diagram.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
本申请要求2019年01月15日递交的申请号为201910037024.7、发明名称为“一种终端的地址配置方法和装置”中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 201910037024.7 and the invention title of "A method and device for configuring a terminal address" filed on January 15, 2019, the entire content of which is incorporated into this application by reference.
本申请涉及通信技术领域,特别是涉及一种终端的地址配置方法和一种终端的地址配置装置。This application relates to the field of communication technology, and in particular to a method for configuring an address of a terminal and an address configuring device of a terminal.
物联网技术是继计算机和互联网之后的第三次信息技术革命,具有实时性和交互性等优点,已经被广泛应用于城市管理、数字家庭、定位导航、物流管理、安保系统等多个领域。其中,LoRa是物联网中一种基于扩频技术的超远距离传输方案,具有传输距离远、低功耗、多节点和低成本等特性。The Internet of Things technology is the third information technology revolution after computers and the Internet. It has the advantages of real-time and interactivity. It has been widely used in urban management, digital homes, positioning and navigation, logistics management, security systems and other fields. Among them, LoRa is an ultra-long-distance transmission scheme based on spread spectrum technology in the Internet of Things, which has the characteristics of long transmission distance, low power consumption, multiple nodes and low cost.
LoRa网络包括终端、基站和服务器。终端的工作模式包括ClassA模式、ClassB模式、ClassC模式。在ClassB模式下,终端会在可预见的时间内开启接收窗口,该窗口称为脉冲时隙Pingslot。The LoRa network includes terminals, base stations and servers. The working modes of the terminal include ClassA mode, ClassB mode, and ClassC mode. In the ClassB mode, the terminal will open a receiving window within a foreseeable time, and this window is called a Pingslot.
终端的通信方式包括单播和组播。单播:服务器给每个终端配置唯一的地址标识DebAddr,服务器根据这个地址计算出该终端Class B下行频点和时间窗口。服务器在这个频点和时间窗口单独发消息给该设备。The communication modes of the terminal include unicast and multicast. Unicast: The server configures a unique address identifier DebAddr for each terminal, and the server calculates the Class B downlink frequency and time window of the terminal according to this address. The server sends a message to the device separately at this frequency and time window.
组播:服务器给每个LoRa组播组配置唯一的地址标识McAddr,服务器根据这个地址计算出这个组播组中多个终端共同的Class B下行频点和时间窗口。服务器在这个频点和时间窗口群发消息给该组播组中的所有终端。Multicast: The server configures a unique address identifier McAddr for each LoRa multicast group, and the server calculates the Class B downlink frequency and time window common to multiple terminals in this multicast group based on this address. The server sends a group message to all terminals in the multicast group at this frequency and time window.
当终端具有单播和组播两种通信方式时,其单播地址Pingslot与其组播地址Pingslot可能会重叠,但单播频点和组播频点并不相同,此时终端只能固定监听组播/单播频点,而周期性错失单播/组播下行数据,甚至永远也收不到单播/组播下行数据。When the terminal has two communication modes: unicast and multicast, its unicast address Pingslot and its multicast address Pingslot may overlap, but the unicast frequency and multicast frequency are not the same. At this time, the terminal can only fix the monitoring group Broadcast/unicast frequency point, and periodically miss unicast/multicast downlink data, and even never receive unicast/multicast downlink data.
发明内容Summary of the invention
鉴于上述问题,提出了本申请实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种终端的地址配置方法和相应的一种终端的地址配置装置。In view of the foregoing problems, the embodiments of the present application are proposed to provide a method for configuring an address of a terminal and a corresponding device for configuring an address of a terminal, which overcomes or at least partially solves the foregoing problem.
为了解决上述问题,本申请实施例公开了一种终端的地址配置方法,应用于服务器,所述方法包括:In order to solve the above-mentioned problem, an embodiment of the present application discloses a method for configuring an address of a terminal, which is applied to a server, and the method includes:
当服务器接收到地址配置请求时,确定所述地址配置请求对应的网关;When the server receives the address configuration request, it determines the gateway corresponding to the address configuration request;
从与所述网关对应的一个地址池中选取目标地址,并将所述目标地址配置给所述地址配置请求对应的终端,以使所述终端的组播地址和单播地址位于同一个地址池中;其中,每个地址池中的地址的脉冲时隙PingSlot频点相同。Select a target address from an address pool corresponding to the gateway, and configure the target address to the terminal corresponding to the address configuration request, so that the multicast address and the unicast address of the terminal are in the same address pool Medium; Among them, the pulse time slot PingSlot frequency point of each address in the address pool is the same.
可选的,还包括:Optional, also includes:
从预置的多个地址池中,确定对应所述网关的地址池。Determine the address pool corresponding to the gateway from a plurality of preset address pools.
可选的,所述从预置的多个地址池中,确定对应所述网关的地址池,包括:Optionally, the determining the address pool corresponding to the gateway from a plurality of preset address pools includes:
确定所述网关的下行通道数量;Determining the number of downlink channels of the gateway;
根据所述网关的下行通道数量,从预置的多个地址池中确定对应所述网关的地址池。According to the number of downlink channels of the gateway, an address pool corresponding to the gateway is determined from a plurality of preset address pools.
可选的,所述根据所述网关的下行通道数量,从预置的多个地址池中确定对应所述网关的地址池,包括:Optionally, the determining the address pool corresponding to the gateway from a plurality of preset address pools according to the number of downlink channels of the gateway includes:
若所述网关的下行通道数量为一个,则从预置的多个地址池中确定一个对应所述网关的地址池;If the number of downlink channels of the gateway is one, determine an address pool corresponding to the gateway from a plurality of preset address pools;
若所述网关的下行通道数量为多个,则从预置的多个地址池中确定多个对应所述网关的地址池;其中所述多个地址池两两之间间隔有未使用的频点。If the number of downlink channels of the gateway is multiple, multiple address pools corresponding to the gateway are determined from multiple preset address pools; wherein there are unused frequencies between the multiple address pools. point.
可选的,所述从与所述网关对应的一个地址池中选取目标地址,并将所述目标地址配置给所述地址配置请求对应的终端,包括:Optionally, the selecting a target address from an address pool corresponding to the gateway and configuring the target address to the terminal corresponding to the address configuration request includes:
若所述地址配置请求为针对组播地址的地址配置请求,并且所述终端在先已配置有单播地址,则从该单播地址所在的地址池中选取一个地址作为目标地址;If the address configuration request is an address configuration request for a multicast address, and the terminal has been configured with a unicast address in advance, then select an address from the address pool where the unicast address is located as the target address;
将所述目标地址配置为所述终端的组播地址。The target address is configured as the multicast address of the terminal.
可选的,所述从与所述网关对应的一个地址池中选取目标地址,并将所述目标地址配置给所述地址配置请求对应的终端,包括:Optionally, the selecting a target address from an address pool corresponding to the gateway and configuring the target address to the terminal corresponding to the address configuration request includes:
若所述地址配置请求为针对单播地址的地址配置请求,并且所述终端在先已配置有组播地址,则从该组播地址所在的地址池中选取一个地址作为目标地址;If the address configuration request is an address configuration request for a unicast address, and the terminal has been configured with a multicast address in advance, an address is selected as the target address from the address pool where the multicast address is located;
将所述目标地址配置为所述终端的单播地址。The target address is configured as the unicast address of the terminal.
可选的,所述从与所述网关对应的一个地址池中选取目标地址,并将所述目标地址配置给所述地址配置请求对应的终端,包括:Optionally, the selecting a target address from an address pool corresponding to the gateway and configuring the target address to the terminal corresponding to the address configuration request includes:
若所述地址配置请求为针对单播地址以及组播地址的地址配置请求,则从与所述网关对应的一个地址池中选取两个地址作为目标地址;If the address configuration request is an address configuration request for a unicast address and a multicast address, two addresses are selected as target addresses from an address pool corresponding to the gateway;
将所述目标地址分别配置为所述终端的单播地址和组播地址。The target addresses are respectively configured as the unicast address and the multicast address of the terminal.
可选的,不同地址池的地址的PingSlot频点不同。Optionally, the PingSlot frequency points of addresses in different address pools are different.
本申请实施例还公开了一种终端的地址配置装置,所述装置设置于服务器,所述装置包括:The embodiment of the present application also discloses an address configuration device of a terminal, the device is set in a server, and the device includes:
网关确定模块,用于当服务器接收到地址配置请求时,确定所述地址配置请求对应的网关;The gateway determination module is used to determine the gateway corresponding to the address configuration request when the server receives the address configuration request;
终端地址配置模块,用于从与所述网关对应的一个地址池中选取目标地址,并将所述目标地址配置给所述地址配置请求对应的终端,以使所述终端的组播地址和单播地址位于同一个地址池中;其中,每个地址池的地址的脉冲时隙PingSlot频点相同。The terminal address configuration module is used to select a target address from an address pool corresponding to the gateway, and configure the target address to the terminal corresponding to the address configuration request, so that the multicast address of the terminal and the single The broadcast addresses are located in the same address pool; among them, the pulse timeslot PingSlot frequency point of each address pool address is the same.
可选的,还包括:Optional, also includes:
网关地址池确定模块,用于从预置的多个地址池中,确定对应所述网关的地址池。The gateway address pool determining module is used to determine the address pool corresponding to the gateway from a plurality of preset address pools.
可选的,所述网关地址池确定模块包括:Optionally, the gateway address pool determining module includes:
下行通道数量确定子模块,用于确定所述网关的下行通道数量;The number of downlink channels determining sub-module is used to determine the number of downlink channels of the gateway;
网关地址池确定子模块,用于根据所述网关的下行通道数量,从预置的多个地址池中确定与所述网关对应的地址池。The gateway address pool determining submodule is configured to determine the address pool corresponding to the gateway from a plurality of preset address pools according to the number of downlink channels of the gateway.
可选的,所述网关地址池确定子模块包括:Optionally, the gateway address pool determining submodule includes:
第一网关地址池确定单元,用于若所述网关的下行通道数量为一个,则从预置的多个地址池中确定一个与所述网关对应的地址池;The first gateway address pool determining unit is configured to, if the number of downlink channels of the gateway is one, determine an address pool corresponding to the gateway from a plurality of preset address pools;
第二网关地址池确定单元,用于若所述网关的下行通道数量为多个,则从预置的多个地址池中确定多个对应所述网关的地址池;其中所述多个地址池两两之间间隔有未使用的频点。The second gateway address pool determining unit is configured to, if the number of downlink channels of the gateway is multiple, determine multiple address pools corresponding to the gateway from the multiple preset address pools; wherein the multiple address pools There are unused frequency points between the two.
可选的,所述终端地址配置模块包括:Optionally, the terminal address configuration module includes:
第一目标地址选取子模块,用于若所述地址配置请求为针对组播地址的地址配置请求,并且所述终端在先已配置有单播地址,则从该单播地址所在的地址池中选取一个地址作为目标地址;The first target address selection submodule is used to select from the address pool where the unicast address is located if the address configuration request is an address configuration request for a multicast address, and the terminal has been previously configured with a unicast address Select an address as the target address;
第一目标地址配置子模块,用于将所述目标地址配置为所述终端的组播地址。The first target address configuration submodule is configured to configure the target address as a multicast address of the terminal.
可选的,所述终端地址配置模块包括:Optionally, the terminal address configuration module includes:
第二目标地址选取子模块,用于若所述地址配置请求为针对单播地址的地址配置请 求,并且所述终端在先已配置有组播地址,则从该组播地址所在的地址池中选取一个地址作为目标地址;The second target address selection sub-module is configured to, if the address configuration request is an address configuration request for a unicast address, and the terminal has been configured with a multicast address in advance, then from the address pool where the multicast address is located Select an address as the target address;
第二目标地址配置子模块,用于将所述目标地址配置为所述终端的单播地址。The second target address configuration submodule is configured to configure the target address as the unicast address of the terminal.
可选的,所述终端地址配置模块包括:Optionally, the terminal address configuration module includes:
第三目标地址选取子模块,用于若所述地址配置请求为针对单播地址以及组播地址的地址配置请求,则从与所述网关对应的一个地址池中选取两个地址作为目标地址;The third target address selection sub-module is configured to select two addresses as target addresses from an address pool corresponding to the gateway if the address configuration request is an address configuration request for a unicast address and a multicast address;
第三目标地址配置子模块,用于将所述目标地址分别配置为所述终端的单播地址和组播地址。The third target address configuration submodule is configured to configure the target address as the unicast address and the multicast address of the terminal respectively.
可选的,不同地址池的地址的PingSlot频点不同。Optionally, the PingSlot frequency points of addresses in different address pools are different.
本申请实施例还公开了一种装置,包括:The embodiment of the application also discloses a device, including:
一个或多个处理器;和One or more processors; and
其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述装置执行如上所述的一个或多个的方法。One or more machine-readable media on which instructions are stored, when executed by the one or more processors, cause the apparatus to perform one or more of the methods described above.
本申请实施例还公开了一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得所述处理器执行如上所述的一个或多个的方法。The embodiment of the present application also discloses one or more machine-readable media, on which instructions are stored, which when executed by one or more processors, cause the processors to execute one or more of the methods described above.
本申请实施例包括以下优点:The embodiments of the application include the following advantages:
在本申请实施例中,可以从与网关对应的一个地址池中选择目标地址,并将目标地址配置给终端,以使为终端配置的组播地址和单播地址位于同一个地址池中,由于同一个地址池中的地址的PingSlot频点相同,因此组播地址的频点和单播地址的频点相同,不会出现由于组播地址的频点和单播地址的频点不同,而损失单播下行数据或组播下行数据的情况。In this embodiment of the application, the target address can be selected from an address pool corresponding to the gateway, and the target address can be configured to the terminal, so that the multicast address and unicast address configured for the terminal are in the same address pool. The PingSlot frequency of the addresses in the same address pool is the same, so the frequency of the multicast address is the same as the frequency of the unicast address, and there will be no loss due to the difference between the frequency of the multicast address and the frequency of the unicast address The case of unicast downlink data or multicast downlink data.
图1是本申请的一种终端的地址配置方法实施例一的步骤流程图;FIG. 1 is a flowchart of the steps of
图2是本申请的一种终端的地址配置方法实施例二的步骤流程图;2 is a flowchart of the steps of
图3是本申请实施例中一种划分地址池的示意图;FIG. 3 is a schematic diagram of dividing an address pool in an embodiment of the present application;
图4是本申请实施例中一种确定对应网关的地址池的示意图;4 is a schematic diagram of determining the address pool of the corresponding gateway in an embodiment of the present application;
图5是本申请的一种终端的地址配置装置实施例的结构框图。Fig. 5 is a structural block diagram of an embodiment of a terminal address configuration device of the present application.
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。In order to make the above objects, features and advantages of the present application more obvious and understandable, the present application will be described in further detail below with reference to the accompanying drawings and specific embodiments.
参照图1,示出了本申请的一种终端的地址配置方法实施例一的步骤流程图,具体可以包括如下步骤:1, there is shown a step flowchart of
步骤101,当服务器接收到地址配置请求时,确定所述地址配置请求对应的网关;Step 101: When the server receives an address configuration request, it determines the gateway corresponding to the address configuration request;
在本申请实施例中,终端为ClassB模式终端。在终端入网时,终端向网关发送地址配置请求,然后网关将地址配置请求转发给服务器。In the embodiment of the present application, the terminal is a ClassB mode terminal. When the terminal accesses the network, the terminal sends an address configuration request to the gateway, and then the gateway forwards the address configuration request to the server.
具体的,服务器部署有地址分配器,地址配置请求中包括终端标识DevEUI和网关标识GWEUI。Specifically, the server is deployed with an address allocator, and the address configuration request includes the terminal identifier DevEUI and the gateway identifier GWEUI.
地址分配器可以根据终端标识确定是由哪个终端发送的地址配置请求,根据网关标识确定是由哪个网关转发的地址配置请求。The address allocator may determine which terminal sent the address configuration request according to the terminal identifier, and determine which gateway forwarded the address configuration request according to the gateway identifier.
步骤102,从与所述网关对应的一个地址池中选取目标地址,并将所述目标地址配置给所述地址配置请求对应的终端,以使所述终端的组播地址和单播地址位于同一个地址池中;其中,每个地址池的地址的脉冲时隙PingSlot频点相同。Step 102: Select a target address from an address pool corresponding to the gateway, and configure the target address to the terminal corresponding to the address configuration request, so that the multicast address and the unicast address of the terminal are in the same In an address pool; among them, the pulse time slot PingSlot frequency point of each address pool address is the same.
在本申请实施例中,地址分配器可以为网关选择至少一个对应的地址池,每个地址池包含有多个地址,属于同一个地址池的地址的PingSlot频点相同,属于不同地址池的地址的PingSlot频点不相同。In the embodiment of this application, the address allocator can select at least one corresponding address pool for the gateway. Each address pool contains multiple addresses. The addresses belonging to the same address pool have the same PingSlot frequency and belong to different address pools. The PingSlot frequency points are different.
在本申请实施例中,可以从与网关对应的一个地址池中选择目标地址,并将目标地址配置给终端,以使为终端配置的组播地址和单播地址位于同一个地址池中,由于同一个地址池中的地址的PingSlot频点相同,因此组播地址的频点和单播地址的频点相同,不会出现由于组播地址的频点和单播地址的频点不同,而损失单播下行数据或组播下行数据的情况。In this embodiment of the application, the target address can be selected from an address pool corresponding to the gateway, and the target address can be configured to the terminal, so that the multicast address and unicast address configured for the terminal are in the same address pool. The PingSlot frequency of the addresses in the same address pool is the same, so the frequency of the multicast address is the same as the frequency of the unicast address, and there will be no loss due to the difference between the frequency of the multicast address and the frequency of the unicast address The case of unicast downlink data or multicast downlink data.
参照图2,示出了本申请的一种终端的地址配置方法实施例二的步骤流程图,具体可以包括如下步骤:Referring to FIG. 2, there is shown a step flowchart of
步骤201,当服务器接收到地址配置请求时,确定所述地址配置请求对应的网关;Step 201: When the server receives the address configuration request, it determines the gateway corresponding to the address configuration request;
在本申请实施例中,终端为ClassB模式终端。在终端入网时,终端向网关发送地址配置请求,然后网关将地址配置请求转发给服务器。In the embodiment of the present application, the terminal is a ClassB mode terminal. When the terminal accesses the network, the terminal sends an address configuration request to the gateway, and then the gateway forwards the address configuration request to the server.
具体的,服务器部署有地址分配器,地址配置请求中包括终端标识DevEUI和网关标识GWEUI。Specifically, the server is deployed with an address allocator, and the address configuration request includes the terminal identifier DevEUI and the gateway identifier GWEUI.
地址分配器可以根据终端标识确定是由哪个终端发送的地址配置请求,根据网关标 识确定是由哪个网关转发的地址配置请求。The address allocator can determine which terminal sent the address configuration request according to the terminal identifier, and which gateway forwarded the address configuration request according to the gateway identifier.
步骤202,从预置的多个地址池中,确定对应所述网关的地址池。Step 202: Determine an address pool corresponding to the gateway from a plurality of preset address pools.
地址分配器可以从预置的多个地址池中,为地址配置请求对应的网关确定对应地址池。The address allocator can determine the corresponding address pool for the gateway corresponding to the address configuration request from a plurality of preset address pools.
每个地址池包含有多个地址,属于同一个地址池的地址的PingSlot频点相同,属于不同地址池的地址的PingSlot频点不相同。Each address pool contains multiple addresses. Addresses belonging to the same address pool have the same PingSlot frequency points, but addresses belonging to different address pools have different PingSlot frequency points.
参照图3所示为本申请实施例中一种划分地址池的示意图。CN470频段是分配给中国地区使用的频段,可以将该频段内的所有地址划分为8个地址池。Referring to FIG. 3, a schematic diagram of dividing an address pool in an embodiment of the application is shown. The CN470 frequency band is a frequency band allocated for use in China. All addresses in this frequency band can be divided into 8 address pools.
第1个地址池的地址可以表示为Nx8,第2个地址池的地址可以表示为Nx8+1,第3个地址池的地址可以表示为Nx8+2,第4个地址池的地址可以表示为Nx8+3,第5个地址池的地址可以表示为Nx8+4,第6个地址池的地址可以表示为Nx8+5,第7个地址池的地址可以表示为Nx8+6,第8个地址池的地址可以表示为Nx8+7,N=1,2,……。The address of the first address pool can be expressed as Nx8, the address of the second address pool can be expressed as
除了将CN470频段划分为8个地址池外,还可以将CN470频段划分为其他数量的地址池;例如,若网络部署了16个通道的网关,则可以将CN470频段划分为16个地址池;若网络部署了32个通道的网关,则可以将CN470频段划分为32个地址池。In addition to dividing the CN470 frequency band into 8 address pools, the CN470 frequency band can also be divided into other number of address pools; for example, if the network deploys a 16-channel gateway, the CN470 frequency band can be divided into 16 address pools; if If the network deploys 32-channel gateways, the CN470 frequency band can be divided into 32 address pools.
地址池的划分方式可以根据实际情况来确定,本申请实施例对此不做限定。The way of dividing the address pool can be determined according to actual conditions, which is not limited in the embodiment of the present application.
CN470频段下根据单播地址计算Class B下行信道频点的公式为:The formula for calculating the frequency of the Class B downlink channel based on the unicast address in the CN470 frequency band is:
CN470频段下根据组播地址计算Class B下行信道频点的公式为:The formula for calculating the frequency of the Class B downlink channel based on the multicast address in the CN470 frequency band is:
其中,floor()为向下取整的函数,modulo为取模运算,beacon_time为信标帧时长,beacon_period为信标帧周期。Among them, floor() is a function rounded down, modulo is a modulo operation, beacon_time is the beacon frame duration, and beacon_period is the beacon frame period.
由这两个公式可知,当单播地址和组播地址都属于同一个地址池时,对应的信道频点是相同的。It can be seen from these two formulas that when both the unicast address and the multicast address belong to the same address pool, the corresponding channel frequencies are the same.
在本申请实施例中,所述步骤202可以包括如下子步骤:In the embodiment of the present application, the
子步骤S11,确定所述网关的下行通道数量;Sub-step S11, determining the number of downlink channels of the gateway;
地址分配器可以根据地址配置请求中的网关标识,从数据库中查找网关的下行通道 数量;The address allocator can look up the number of downlink channels of the gateway from the database according to the gateway identifier in the address configuration request;
子步骤S12,根据所述网关的下行通道数量,从预置的多个地址池中确定对应所述网关的地址池。Sub-step S12: According to the number of downlink channels of the gateway, an address pool corresponding to the gateway is determined from a plurality of preset address pools.
地址分配器可以根据网关的下行通道数量,从预置的多个地址池中确定与网关对应的地址池。The address allocator can determine the address pool corresponding to the gateway from multiple preset address pools according to the number of downlink channels of the gateway.
在本申请实施例中,所述子步骤S12可以进一步包括:In the embodiment of the present application, the sub-step S12 may further include:
子步骤S121,若所述网关的下行通道数量为一个,则从预置的多个地址池中确定一个对应所述网关的地址池;Sub-step S121: if the number of downlink channels of the gateway is one, determine an address pool corresponding to the gateway from a plurality of preset address pools;
子步骤S122,若所述网关的下行通道数量为多个,则从预置的多个地址池中确定多个对应所述网关的地址池;其中所述多个地址池两两之间间隔有未使用的频点。In sub-step S122, if the number of downlink channels of the gateway is multiple, determine multiple address pools corresponding to the gateway from the multiple preset address pools; wherein there is an interval between the multiple address pools. Unused frequency points.
如果网关具备多下行通道的能力,在很多时候,同时下行的几个物理频点相距较近,会产生较大的邻频干扰问题。邻频干扰是常见的干扰问题,不仅在多路组播时会产生,在多路单播下行也会产生。If the gateway has the capability of multiple downlink channels, in many cases, several physical frequency points that are downlinked at the same time are close together, which will cause greater adjacent channel interference problems. Adjacent channel interference is a common interference problem, not only in multi-channel multicast, but also in multi-channel unicast downlink.
因此,在本申请实施例中,在网关的下行通道数量为多个时,地址分配器可以为网关确定多个对应的地址池,多个地址池两两之间间隔有未使用的频点,可以使得下行通道之间具有频率间隔,解决邻频干扰问题。Therefore, in the embodiment of the present application, when the number of downlink channels of the gateway is multiple, the address allocator can determine multiple corresponding address pools for the gateway, and there are unused frequency points between the multiple address pools. It can make the frequency interval between the downlink channels and solve the problem of adjacent channel interference.
参照图4所示为本申请实施例中一种确定对应网关的地址池的示意图。4 is a schematic diagram of determining the address pool of the corresponding gateway in an embodiment of this application.
对于有1个下行信道的网关,可以选择1号地址池,该网关服务范围内所有终端的单播地址和组播地址可以从1号地址池获取。For a gateway with one downlink channel, you can select the address pool No. 1. The unicast addresses and multicast addresses of all terminals within the service range of the gateway can be obtained from the address pool No. 1.
对于有2个下行信道的网关,可以选择1号、5号地址池,该网关服务范围内所有终端的单播地址和组播地址可以从这两个地址池获取。For a gateway with 2 downlink channels, you can select address pools No. 1 and No. 5. The unicast addresses and multicast addresses of all terminals within the service range of the gateway can be obtained from these two address pools.
对于有2个下行信道的网关,可以选择1号、3号、5号、7号地址池,该网关服务范围内所有终端的单播地址和组播地址可以从这四个地址池获取。For a gateway with 2 downlink channels, you can select
步骤203,从与所述网关对应的一个地址池中选取目标地址,并将所述目标地址配置给所述地址配置请求对应的终端,以使所述终端的组播地址和单播地址位于同一个地址池中;其中,每个地址池的地址的脉冲时隙PingSlot频点相同。Step 203: Select a target address from an address pool corresponding to the gateway, and configure the target address to the terminal corresponding to the address configuration request, so that the multicast address and the unicast address of the terminal are in the same location. In an address pool; among them, the pulse time slot PingSlot frequency point of each address pool address is the same.
在本申请实施例中,地址配置请求可以包含所要请求的地址的类型。具体的,地址配置请求可以包括针对组播地址的地址配置请求,针对单播地址的地址配置请求,以及针对单播地址和组播地址的地址配置请求。In the embodiment of the present application, the address configuration request may include the type of address to be requested. Specifically, the address configuration request may include an address configuration request for a multicast address, an address configuration request for a unicast address, and an address configuration request for a unicast address and a multicast address.
针对组播地址的地址配置请求表示终端需要请求组播地址,针对单播地址的地址配 置请求表示终端需要请求单播地址,针对单播地址和组播地址的地址配置请求表示终端需要请求单播地址和组播地址。An address configuration request for a multicast address indicates that the terminal needs to request a multicast address, an address configuration request for a unicast address indicates that the terminal needs to request a unicast address, and an address configuration request for a unicast address and a multicast address indicates that the terminal needs to request unicast Address and multicast address.
在本申请实施例的一种示例中,所述步骤203可以包括:In an example of the embodiment of the present application, the
若所述地址配置请求为针对组播地址的地址配置请求,并且所述终端在先已配置有单播地址,则从该单播地址所在的地址池中选取一个地址作为目标地址;将所述目标地址配置为所述终端的组播地址。If the address configuration request is an address configuration request for a multicast address, and the terminal has been configured with a unicast address in advance, then select an address from the address pool where the unicast address is located as the target address; The target address is configured as the multicast address of the terminal.
若所述地址配置请求为针对组播地址的地址配置请求,并且所述终端在先未配置有单播地址,则从与所述网关对应的任意一个地址池中选取目标地址,将所述目标地址配置为所述终端的组播地址。If the address configuration request is an address configuration request for a multicast address, and the terminal has not been configured with a unicast address before, a target address is selected from any address pool corresponding to the gateway, and the target The address is configured as the multicast address of the terminal.
在本申请实施例的另一种示例中,所述步骤203可以包括:In another example of the embodiment of the present application, the
若所述地址配置请求为针对单播地址的地址配置请求,并且所述终端在先已配置有组播地址,则从该组播地址所在的地址池中选取一个地址作为目标地址;将所述目标地址配置为所述终端的单播地址。If the address configuration request is an address configuration request for a unicast address, and the terminal has been configured with a multicast address in advance, an address from the address pool where the multicast address is located is selected as the target address; The target address is configured as the unicast address of the terminal.
若所述地址配置请求为针对单播地址的地址配置请求,并且所述终端在先未配置有组播地址,则从与所述网关对应的任意一个地址池中选取目标地址;将所述目标地址配置为所述终端的单播地址。If the address configuration request is an address configuration request for a unicast address, and the terminal has not been previously configured with a multicast address, a target address is selected from any address pool corresponding to the gateway; The address is configured as the unicast address of the terminal.
在本申请实施例的另一种示例中,所述步骤203可以包括:In another example of the embodiment of the present application, the
若所述地址配置请求为针对单播地址以及组播地址的地址配置请求,则从与所述网关对应的一个地址池中选取两个地址作为目标地址;将所述目标地址分别配置为所述终端的单播地址和组播地址。If the address configuration request is an address configuration request for a unicast address and a multicast address, select two addresses from an address pool corresponding to the gateway as target addresses; configure the target addresses as the The unicast address and multicast address of the terminal.
在本申请实施例中,可以从与网关对应的一个地址池中选择目标地址,并将目标地址配置给终端,以使为终端配置的组播地址和单播地址位于同一个地址池中,由于同一个地址池中的地址的PingSlot频点相同,因此组播地址的频点和单播地址的频点相同,不会出现由于组播地址的频点和单播地址的频点不同,而损失单播下行数据或组播下行数据的情况。In the embodiment of the present application, the target address can be selected from an address pool corresponding to the gateway, and the target address can be configured to the terminal, so that the multicast address and the unicast address configured for the terminal are in the same address pool. The PingSlot frequency of the addresses in the same address pool is the same, so the frequency of the multicast address is the same as the frequency of the unicast address, and there will be no loss due to the difference between the frequency of the multicast address and the frequency of the unicast address The case of unicast downlink data or multicast downlink data.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the embodiments of this application are not limited by the described sequence of actions, because According to the embodiments of the present application, certain steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of this application.
参照图5,示出了本申请的一种终端的地址配置装置实施例的结构框图,所述装置设置于服务器,所述装置具体可以包括如下模块:Referring to FIG. 5, there is shown a structural block diagram of an embodiment of a device for configuring an address of a terminal according to the present application. The device is set on a server, and the device may specifically include the following modules:
网关确定模块501,用于当服务器接收到地址配置请求时,确定所述地址配置请求对应的网关;The
终端地址配置模块502,用于从与所述网关对应的一个地址池中选取目标地址,并将所述目标地址配置给所述地址配置请求对应的终端,以使所述终端的组播地址和单播地址位于同一个地址池中;其中,每个地址池的地址的脉冲时隙PingSlot频点相同。The terminal
在本申请实施例中,不同地址池的地址的PingSlot频点不同。In the embodiment of this application, the PingSlot frequency points of addresses in different address pools are different.
在本申请实施例中,所述的装置还可以包括:In the embodiment of the present application, the device may further include:
网关地址池确定模块,用于从预置的多个地址池中,确定对应所述网关的地址池。The gateway address pool determining module is used to determine the address pool corresponding to the gateway from a plurality of preset address pools.
在本申请实施例中,所述网关地址池确定模块可以包括:In the embodiment of the present application, the gateway address pool determining module may include:
下行通道数量确定子模块,用于确定所述网关的下行通道数量;The number of downlink channels determining sub-module is used to determine the number of downlink channels of the gateway;
网关地址池确定子模块,用于根据所述网关的下行通道数量,从预置的多个地址池中确定与所述网关对应的地址池。The gateway address pool determining submodule is configured to determine the address pool corresponding to the gateway from a plurality of preset address pools according to the number of downlink channels of the gateway.
在本申请实施例中,所述网关地址池确定子模块包括:In the embodiment of the present application, the gateway address pool determining submodule includes:
第一网关地址池确定单元,用于若所述网关的下行通道数量为一个,则从预置的多个地址池中确定一个与所述网关对应的地址池;The first gateway address pool determining unit is configured to, if the number of downlink channels of the gateway is one, determine an address pool corresponding to the gateway from a plurality of preset address pools;
第二网关地址池确定单元,用于若所述网关的下行通道数量为多个,则从预置的多个地址池中确定多个对应所述网关的地址池;其中所述多个地址池两两之间间隔有未使用的频点。The second gateway address pool determining unit is configured to, if the number of downlink channels of the gateway is multiple, determine multiple address pools corresponding to the gateway from the multiple preset address pools; wherein the multiple address pools There are unused frequency points between the two.
在本申请实施例中,所述终端地址配置模块502可以包括:In the embodiment of the present application, the terminal
第一目标地址选取子模块,用于若所述地址配置请求为针对组播地址的地址配置请求,并且所述终端在先已配置有单播地址,则从该单播地址所在的地址池中选取一个地址作为目标地址;The first target address selection submodule is used to select from the address pool where the unicast address is located if the address configuration request is an address configuration request for a multicast address, and the terminal has been previously configured with a unicast address Select an address as the target address;
第一目标地址配置子模块,用于将所述目标地址配置为所述终端的组播地址。The first target address configuration submodule is configured to configure the target address as a multicast address of the terminal.
在本申请实施例中,所述终端地址配置模块502可以包括:In the embodiment of the present application, the terminal
第二目标地址选取子模块,用于若所述地址配置请求为针对单播地址的地址配置请求,并且所述终端在先已配置有组播地址,则从该组播地址所在的地址池中选取一个地址作为目标地址;The second target address selection sub-module is configured to, if the address configuration request is an address configuration request for a unicast address, and the terminal has been configured with a multicast address in advance, then from the address pool where the multicast address is located Select an address as the target address;
第二目标地址配置子模块,用于将所述目标地址配置为所述终端的单播地址。The second target address configuration submodule is configured to configure the target address as the unicast address of the terminal.
在本申请实施例中,所述终端地址配置模块502可以包括:In the embodiment of the present application, the terminal
第三目标地址选取子模块,用于若所述地址配置请求为针对单播地址以及组播地址的地址配置请求,则从与所述网关对应的一个地址池中选取两个地址作为目标地址;The third target address selection sub-module is configured to select two addresses as target addresses from an address pool corresponding to the gateway if the address configuration request is an address configuration request for a unicast address and a multicast address;
第三目标地址配置子模块,用于将所述目标地址分别配置为所述终端的单播地址和组播地址。The third target address configuration submodule is configured to configure the target address as the unicast address and the multicast address of the terminal respectively.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method embodiment.
本申请实施例还提供了一种装置,包括:An embodiment of the present application also provides a device, including:
一个或多个处理器;和One or more processors; and
其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述装置执行本申请实施例所述的方法。One or more machine-readable media on which instructions are stored, when executed by the one or more processors, cause the device to execute the method described in the embodiments of the present application.
本申请实施例还提供了一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得所述处理器执行本申请实施例所述的方法。The embodiments of the present application also provide one or more machine-readable media on which instructions are stored, which, when executed by one or more processors, cause the processors to execute the methods described in the embodiments of the present application.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments may refer to each other.
本领域内的技术人员应明白,本申请实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present application may take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The embodiments of the present application are described with reference to the flowcharts and/or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and/or block in the flowchart and/or block diagram and a combination of the flow and/or block in the flowchart and/or block diagram may be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine so that the instructions executed by the processor of the computer or other programmable data processing terminal device Means for generating the functions specified in a block or blocks of a flowchart or a flow and/or a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方 框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing terminal equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The instruction device realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing terminal device, so that a series of operation steps are performed on the computer or other programmable terminal device to generate computer-implemented processing, so that the computer or other programmable terminal device The instructions executed above provide steps for implementing the functions specified in one flow or flow of the flowchart and/or one block or flow of the block diagram.
尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例范围的所有变更和修改。Although the preferred embodiments of the embodiments of the present application have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present application.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this article, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities Or there is any such actual relationship or order between operations. Moreover, the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also those that are not explicitly listed The other elements listed may also include elements inherent to such processes, methods, articles, or terminal equipment. Without more restrictions, the element defined by the sentence "include one..." does not exclude that there are other identical elements in the process, method, article, or terminal device that includes the element.
以上对本申请所提供的一种终端的地址配置方法和一种终端的地址配置装置,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above provides a detailed introduction to a terminal address configuration method and a terminal address configuration device provided in this application. Specific examples are used in this article to illustrate the principles and implementation of this application. The description of the above embodiments It is only used to help understand the methods and core ideas of this application; at the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation and scope of application. In summary, The content of this manual should not be construed as a limitation on this application.
Claims (18)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910037024.7A CN111435950B (en) | 2019-01-15 | 2019-01-15 | Address configuration method and device for terminal |
| CN201910037024.7 | 2019-01-15 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020147610A1 true WO2020147610A1 (en) | 2020-07-23 |
Family
ID=71580065
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2020/070582 Ceased WO2020147610A1 (en) | 2019-01-15 | 2020-01-07 | Address configuration method and device for terminal |
Country Status (3)
| Country | Link |
|---|---|
| CN (1) | CN111435950B (en) |
| TW (1) | TW202044025A (en) |
| WO (1) | WO2020147610A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112118584B (en) * | 2020-11-23 | 2021-02-19 | 翱捷科技(深圳)有限公司 | Gateway, LoRa network system, gateway operation method and storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2018063603A1 (en) * | 2016-09-30 | 2018-04-05 | Intel Corporation | Internet-of-things gateway coordination |
| CN108307355A (en) * | 2017-12-21 | 2018-07-20 | 中兴克拉科技(苏州)有限公司 | A kind of method of realizing group broadcasting of LPWAN Internet of Things |
| WO2018191031A1 (en) * | 2017-04-12 | 2018-10-18 | Cisco Technology, Inc. | System and method to facilitate slice management in a network environment |
| CN109194774A (en) * | 2018-08-09 | 2019-01-11 | 中兴克拉科技(苏州)有限公司 | A kind of device address extended method of LPWAN network server |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102316027A (en) * | 2011-08-17 | 2012-01-11 | 清华大学 | Bidirectional conversion method based on IPv6 unicast and SSM multicast and system thereof |
| US20140006568A1 (en) * | 2012-06-28 | 2014-01-02 | Alcatel-Lucent Canada, Inc. | Prioritization based on ip pool and subnet by dhcp |
| CN108063837A (en) * | 2017-12-25 | 2018-05-22 | 锐捷网络股份有限公司 | Dynamic IP addressing distribution method and device |
-
2019
- 2019-01-15 CN CN201910037024.7A patent/CN111435950B/en active Active
- 2019-11-22 TW TW108142516A patent/TW202044025A/en unknown
-
2020
- 2020-01-07 WO PCT/CN2020/070582 patent/WO2020147610A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2018063603A1 (en) * | 2016-09-30 | 2018-04-05 | Intel Corporation | Internet-of-things gateway coordination |
| WO2018191031A1 (en) * | 2017-04-12 | 2018-10-18 | Cisco Technology, Inc. | System and method to facilitate slice management in a network environment |
| CN108307355A (en) * | 2017-12-21 | 2018-07-20 | 中兴克拉科技(苏州)有限公司 | A kind of method of realizing group broadcasting of LPWAN Internet of Things |
| CN109194774A (en) * | 2018-08-09 | 2019-01-11 | 中兴克拉科技(苏州)有限公司 | A kind of device address extended method of LPWAN network server |
Also Published As
| Publication number | Publication date |
|---|---|
| TW202044025A (en) | 2020-12-01 |
| CN111435950B (en) | 2022-05-27 |
| CN111435950A (en) | 2020-07-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10044815B2 (en) | Location-based domain name system service discovery | |
| US11025584B2 (en) | Client subnet efficiency by equivalence class aggregation | |
| CN108781346A (en) | Wireless communications method, terminal device based on multicast and base station | |
| CN112468278A (en) | Method and device for determining resources | |
| US20130148596A1 (en) | Resource management system and method of centralized base station in mobile communication network | |
| US20180337760A1 (en) | Pilot signal sending method, channel estimation method, and device | |
| CN109495526A (en) | A kind of file transmitting method, device, system, electronic equipment and storage medium | |
| WO2019191928A1 (en) | Assignment of random access channel resources to information requests | |
| CN106713162B (en) | Method and device for counting BGP community attributes or expanding community attribute flow values | |
| WO2020147610A1 (en) | Address configuration method and device for terminal | |
| WO2020087506A1 (en) | Method and apparatus for setting transmission time advance | |
| US9860171B2 (en) | Large scale message routing in a distributed network | |
| WO2023109950A1 (en) | Tracking area boundary information processing method and apparatus, electronic device, and readable medium | |
| CN103200593B (en) | Base station self-starting and self-starting householder method and equipment | |
| CN104521286B (en) | Data transmission method, device and system | |
| CN114339986A (en) | Screening method, device, electronic device and storage medium for wireless access capability | |
| CN110247778B (en) | Operating system installation method and device, electronic equipment and storage medium | |
| WO2020024853A1 (en) | Communication method and apparatus for terminal | |
| HK40033295B (en) | Terminal address configuration method and device | |
| HK40033295A (en) | Terminal address configuration method and device | |
| WO2020238738A1 (en) | Beacon frame communication and base station synchronization methods and apparatuses in communication network | |
| WO2020078245A1 (en) | Method and device for communication between terminal and base station | |
| TW202110238A (en) | Multicast communication method and system of communication network, multicast application server and terminal | |
| WO2019204990A1 (en) | Channel transmission method and network device | |
| CN111050357B (en) | Communication method and device for terminal and base station |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20741404 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 20741404 Country of ref document: EP Kind code of ref document: A1 |