WO2022262024A1 - Geographic area-oriented communication method, apparatus and system - Google Patents

Geographic area-oriented communication method, apparatus and system Download PDF

Info

Publication number
WO2022262024A1
WO2022262024A1 PCT/CN2021/105196 CN2021105196W WO2022262024A1 WO 2022262024 A1 WO2022262024 A1 WO 2022262024A1 CN 2021105196 W CN2021105196 W CN 2021105196W WO 2022262024 A1 WO2022262024 A1 WO 2022262024A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication
address
area
wireless routing
geographic
Prior art date
Application number
PCT/CN2021/105196
Other languages
French (fr)
Chinese (zh)
Inventor
郜帅
侯心迪
苏伟
王洪超
Original Assignee
北京交通大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京交通大学 filed Critical 北京交通大学
Publication of WO2022262024A1 publication Critical patent/WO2022262024A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information

Definitions

  • the present application relates to the technical field of communication, and in particular to a geographical area-oriented communication method, device and system.
  • the present application provides a geographical area-oriented communication method, device and system.
  • a geographical area-oriented communication method which is characterized in that it is applied to a sender device, and the method includes:
  • the communication request message is used to obtain a first communication address corresponding to the first geographic address, and the first communication address is used to process the first sub- the address of the first wireless routing device for data transmission in the area;
  • the server cluster determines the target communication address corresponding to the first geographical address according to the stored multi-level mapping relationship between the geographical address and the communication address, and transmits the first communication
  • the address is carried in the communication response message and sent;
  • the sending the communication request message to the server cluster includes:
  • the receiving the communication response message fed back by the server cluster, and communicating with the first wireless routing device according to the first communication address carried in the communication response message includes:
  • a geographical area-oriented communication method is also provided, which is applied to a wireless routing device, and the method includes:
  • the communication message includes a source geographic address, a destination geographic address, and a message type
  • performing the processing operation corresponding to the message type includes:
  • performing the processing operation corresponding to the message type includes:
  • a geographical area-oriented communication method is also provided, which is applied to a receiver device, and the method includes:
  • the communication data message includes a source geographic address and a destination geographic address
  • the verification result is used to indicate that the first address information is the same as the subdivided grid coded prefix information, determine whether the first geographic address carries a host identifier;
  • a communication system oriented to a geographical area including: a server cluster, a first wireless routing device and a receiver device located in a first sub-area, and a communication system located in a second sub-area a sender device and a second wireless routing device;
  • the sender device is configured to determine a first sub-area where the sender device requests communication, and a first geographical address of the first sub-area; generate a communication request message according to the first geographical address, wherein, The communication request message is used to obtain a first communication address corresponding to the first geographical address, and the first communication address is an address of a first wireless routing device that handles data transmission in the first sub-area; The second wireless routing device sends the communication request message;
  • the second wireless routing device is configured to verify the communication request message, and send the communication request message to the server cluster if the communication request message passes the verification;
  • the server cluster is configured to determine the first communication address corresponding to the first geographic address according to the stored mapping relationship between the geographic address and the communication address, carry the first communication address in the communication response message, and send it to the second wireless routing device;
  • the second wireless routing device is configured to receive the communication response message, and forward the communication response message to the sender device;
  • the sender device is configured to receive the communication response message, determine the second geographic address of the second sub-area, and generate a communication datagram according to the first geographic address, the second geographic address, and the first communication address text; send the communication data packet to the second wireless routing device, so that the second wireless routing device forwards the communication data packet to the first wireless routing device, and the second wireless routing device forwards the communication data packet to the first wireless routing device
  • the wireless routing device broadcasts the communication data packet to the receiver device.
  • the server cluster includes: a root server, regional servers deployed in each area, and local servers deployed in each sub-area;
  • the first mapping relationship between the geographical address of the sub-area and the communication address visited by the wireless routing device corresponding to the sub-area is stored in the local service area;
  • the second mapping relationship between the geographical address of the area and the communication address of the wireless routing device corresponding to each sub-area in the area is stored in the area server;
  • the root server stores a third mapping relationship between geographic addresses of each area and communication addresses of wireless routing devices in each area.
  • the local server is configured to receive the communication request message, and send a message to the area when it is determined that there is no first communication address corresponding to the first geographical address according to the first mapping relationship.
  • the server sends the communication request message;
  • the regional server is configured to receive the communication request message, and send the communication request message to the local server when it is determined that there is a first communication address corresponding to the first geographic address according to the second mapping relationship. the first mailing address;
  • the local server is configured to send the first communication address to the second wireless routing device, and store a mapping relationship between the first geographical address and the first communication address.
  • the regional server receives the communication request message, and sends the communication request message to the root server when it is determined that there is no first communication address corresponding to the first geographic address according to the second mapping relationship.
  • the communication request message ;
  • the root server is configured to receive the communication request message, and when it is determined according to the third mapping relationship that there is a first communication address corresponding to the first geographic address, send the communication request message to the area server. the first mailing address;
  • the regional server is configured to send the first communication address to the local server, and the local server sends the first communication address to the second wireless routing device.
  • a communication request processing device including:
  • a determining module configured to determine a first sub-area where the sender device requests communication, and a first geographic address of the first sub-area
  • a generating module configured to generate a communication request message according to the first geographical address, wherein the communication request message is used to obtain a first communication address corresponding to the first geographical address, and the first communication address is a processing the address of the first wireless routing device for data transmission in the first sub-area;
  • a query module configured to send the communication request message to the server cluster, so that the server cluster determines the target communication address corresponding to the first geographic address according to the stored multi-level mapping relationship between the geographic address and the communication address, and sends the The first communication address is carried in the communication response message and sent;
  • a processing module configured to receive a communication response message fed back by the server cluster, and communicate with the first wireless routing device according to the first communication address carried in the communication response message, so that the first wireless routing device The routing device broadcasts to receiver devices in the first sub-area.
  • a communication request processing device including:
  • a receiving module configured to receive a communication message, wherein the communication message includes a source geographic address, a destination geographic address, and a message type;
  • a first acquiring module configured to determine the first layer number in the first geographic address when the destination geographic address is the first geographic address
  • a second acquiring module configured to acquire a second geographic address stored in the wireless routing device, and determine a second layer number of the second geographic address
  • a verification module configured to verify the prefix information of the first address information and the second address information when the first layer number is greater than or equal to the second layer number, and obtain a verification result ;
  • An execution module configured to execute a processing operation corresponding to the packet type when the verification result indicates that the prefix information of the first address information is the same as that of the second address information.
  • a communication request processing device including:
  • a receiving module configured to receive a communication data message, wherein the communication data message includes a source geographic address and a destination geographic address;
  • a first acquiring module configured to determine the first layer number in the first geographic address when the destination geographic address is the first geographic address
  • the second acquisition module is configured to acquire the coordinate data of the receiver device, encode the coordinate data according to a preset encoding rule to obtain a subdivision grid code, and determine the third layer of the subdivision grid code number;
  • a verification module configured to perform layer-by-layer verification of the prefix information encoded with the subdivision grid of the first address information when the first layer number is greater than or equal to the third layer number , get the verification result;
  • a determining module configured to determine whether the first geographic address carries a host identifier when the verification result indicates that the first address information is the same as the subdivided grid coded prefix information
  • a processing module configured to process the communication data packet when the host identifier is not carried in the first geographical address.
  • a storage medium is further provided, the storage medium includes a stored program, and the above steps are executed when the program runs.
  • an electronic device including a processor, a communication interface, a memory, and a communication bus, wherein, the processor, the communication interface, and the memory complete mutual communication through the communication bus; wherein:
  • the memory is used to store computer programs; the processor is used to execute the steps in the above method by running the programs stored in the memory.
  • the embodiment of the present application also provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the steps in the above method.
  • the sender device carries the geographical address of the geographical area to be communicated in the communication request message, and sends the communication request message to The server cluster, through the multi-level mapping relationship in the server cluster, can quickly provide the communication address corresponding to the geographical address for the sender device, so that the sender device uses the communication address to communicate with the wireless routing device for processing the geographical area to be communicated, thereby Use the wireless routing device to broadcast to receiver devices within the geographical area covered by it.
  • the query efficiency is improved.
  • the sender device uses the communication address to directly communicate with the wireless routing device for processing the geographical area to be communicated, which improves the communication efficiency between the sender device and the geographical area.
  • FIG. 1 is a flow chart of a geographical area-oriented communication method provided by an embodiment of the present application
  • FIG. 2 is a flow chart of a geographic area-oriented communication method provided by another embodiment of the present application.
  • FIG. 3 is a flow chart of a geographical area-oriented communication method provided by another embodiment of the present application.
  • Fig. 4 is the schematic diagram of a kind of EMD coding that the embodiment of the present application provides;
  • Fig. 5 is the schematic diagram of a kind of EMD coding that the embodiment of the present application provides;
  • FIG. 6 is a schematic diagram of an EMD code provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of an EMD code provided in an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an EMD code provided in an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a geographic address provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a communication structure within a domain provided by an embodiment of the present application.
  • FIG. 11 is a block diagram of a geographical area-oriented communication system provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of a geographical area-oriented communication system provided by another embodiment of the present application.
  • FIG. 13 is a block diagram of a geographical area-oriented communication device provided by an embodiment of the present application.
  • FIG. 14 is a block diagram of a geographical area-oriented communication device provided by another embodiment of the present application.
  • FIG. 15 is a block diagram of a geographic area-oriented communication device provided by another embodiment of the present application.
  • FIG. 16 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Embodiments of the present application provide a geographical area-oriented communication method, device, and system.
  • the method provided in the embodiment of the present application can be applied to any required electronic device, for example, it can be an electronic device such as a server or a terminal, which is not specifically limited here, and for convenience of description, it will be referred to as an electronic device for short.
  • Fig. 1 is a flow chart of a geographical area-oriented communication method provided by the embodiment of the present application. As shown in Fig. 1, the method includes:
  • Step S11 determining the first sub-area where the sender device requests communication, and the first geographic address of the first sub-area.
  • the sub-areas are obtained by dividing a certain area in the whole domain.
  • the geographic address is Geo IP
  • Geo has geographic location semantics.
  • Each sub-area corresponds to a Geo IP, and each area also corresponds to a Geo IP.
  • Geo IP Geo IP.
  • Geo IP is based on the encoding method of EMD to construct Geo IP, and uniquely identify geographic regions of any granularity.
  • the EMD-based coding method first divides the global geographic area into multiple grids according to latitude and longitude, uses binary coding to generate subdivided grid codes, and binds the codes to the subdivided grids to realize the real-time data analysis of any geographic area in the whole domain. logo.
  • the sender device when the sender device needs to establish a communication connection with the first sub-area, the sender device will query the first geographic address (that is, the first Geo IP) corresponding to the first sub-area.
  • the first geographic address that is, the first Geo IP
  • Step S12 generating a communication request message according to the first geographical address, wherein the communication request message is used to obtain a first communication address corresponding to the first geographical address, and the first communication address is the first communication address for processing data transmission in the first sub-area.
  • the address of the wireless routing device is not limited to the wireless routing device.
  • the communication with the first sub-area cannot be established only based on the first geographic address, and therefore the first communication address of the first sub-area needs to be acquired. Therefore, this application generates a communication request message according to the first geographic address.
  • the generation process includes: determining the second geographic address of the second sub-area where the sending device is located, using the first geographic address as the destination geographic address, and the second geographic address as the source The geographic address generates a communication request message.
  • each sub-area corresponds to a wireless routing device
  • the wireless routing device is used to process data transmission of communication devices in the sub-area, such as data sending, forwarding, and receiving.
  • Step S13 sending a communication request message to the server cluster, so that the server cluster determines the target communication address corresponding to the first geographic address according to the stored multi-level mapping relationship between the geographical address and the communication address, and carries the first communication address in the communication response message and send it.
  • the sender device since the server cluster stores the mapping relationship between the geographical address and the communication address, the sender device sends the communication request message to the server cluster, and the first communication address corresponding to the first geographical address can be obtained (that is, the IP address of the first wireless routing device).
  • the mapping relationship between the geographical address and the communication address is stored in the server cluster, so as to ensure the security of communication between regions.
  • step S13 sending a communication request message to the server cluster, includes the following steps Steps A1 to A2:
  • Step A1 determining the second sub-area where the sender device is located, and a second wireless routing device for processing data transmission in the second sub-area;
  • Step A2 sending the communication request message to the second wireless router device, so that the second wireless router device forwards the communication request message to the server cluster.
  • the sending device since the second wireless routing device is used to process data transmission in the area where the sending device is located, the sending device first sends the communication request message to the second wireless routing device, and the second wireless routing device After the communication request message is verified successfully, the second wireless routing device sends the communication request message to the server cluster.
  • Step S14 receiving the communication response message fed back by the server cluster, and communicating with the first wireless routing device according to the first communication address carried in the communication response message, so that the first wireless routing device can receive information in the first sub-area The other device broadcasts.
  • step S14 is to receive the communication response message fed back by the server cluster, and communicate with the first wireless routing device according to the first communication address carried in the communication response message, including the following steps B1 to B3:
  • Step B1 determining the second geographical address of the second sub-area
  • Step B2 generating a communication data message according to the first geographical address, the second geographical address and the first communication address;
  • Step B3 sending the communication data message to the second wireless routing device, so that the second wireless routing device forwards the communication data message to the first wireless routing device, and the second wireless routing device broadcasts the communication data message to the receiver square equipment.
  • the communication data message is generated by adding IP encapsulation outside the message (wherein the first geographical address is the destination geographic address). address, the second geographic address is the source geographic address), the communication data message is sent to the second wireless routing device, and the second wireless routing device further checks according to the Geo IP carried in the communication data message, if the verification succeeds , the second wireless router sends the communication data packet to the first wireless router device, so as to realize the communication of the sender device facing the geographical area.
  • Fig. 2 is a flow chart of a geographical region-oriented communication method provided by the embodiment of the present application. As shown in Fig. 2, the method is applied to a wireless routing device and may include the following steps:
  • Step S21 receiving a communication message, wherein the communication message includes a source geographic address, a destination geographic address, and a message type;
  • Step S22 if the destination geographic address is the first geographic address, determine the first layer number in the first geographic address
  • Step S23 obtaining the second geographic address stored in the wireless routing device, and determining the second layer number of the second geographic address
  • Step S24 in the case that the number of the first layer is greater than or equal to the number of the second layer, verifying the prefix information of the first address information and the second address information layer by layer to obtain a verification result;
  • the prefix of the first geographic address is compared with the prefix of the first geographic address stored in itself. Layer comparison, until each layer in the geographic address prefix of its own is compared, if they are different, they will be discarded; if they are the same, they will be accepted.
  • the layer number of the first geographic address in the message is less than the layer number of the geographical address stored in the message, it indicates that the message is an "abnormal message" and is discarded.
  • Step S25 when the verification result indicates that the prefix information of the first address information and the second address information are the same, perform a processing operation corresponding to the message type.
  • the processing operation corresponding to the message type is performed, including the following steps C1:
  • Step C1 sending a communication response message to the sender device corresponding to the destination geographic address carried in the communication response message.
  • the processing operation corresponding to the message type is performed, including the following step C2:
  • Step C2 broadcasting the communication data message to receiver devices in the sub-area corresponding to the wireless routing device.
  • the wireless routing device is a data plane programmable device, which can allocate a Geo IP with the Geo IP prefix of the sub-area to the terminal devices in the sub-area. Different from the Geo IP used to identify the geographical location, the Geo IP used to identify the terminal device in the sub-area is prefixed with the Geo IP of the sub-area, and the rest is used as the host number.
  • the Geo IP of the sub-area is 00111-00010-00-000101-01-10-0011-01-00...00 of level 7 (the first 5 digits 00111 indicate that the coding depth is 7 layers, in order to describe the "-" symbol with To distinguish each layer), the Geo IP of the terminal equipment in the area can be 00111-00010-00-000101-01-10-0011-01-xx...xx (x as the host number cannot be all 0).
  • Fig. 3 is a flow chart of a geographical area-oriented communication method provided in the embodiment of the present application. As shown in Fig. 3, the method is applied to the receiver device and may include the following steps:
  • Step S31 receiving a communication data message, wherein the communication data message includes a source geographic address and a destination geographic address;
  • Step S32 if the destination geographic address is the first geographic address, determine the first layer number in the first geographic address
  • Step S33 obtaining the coordinate data of the receiving device, encoding the coordinate data according to the preset encoding rules to obtain the subdivision grid code, and determining the third layer number of the subdivision grid code;
  • Step S34 in the case that the number of the first layer is greater than or equal to the number of the third layer, verify the prefix information of the first address information and subdivided grid code layer by layer, and obtain the verification result;
  • Step S35 in the case where the verification result indicates that the first address information is the same as the subdivision grid coded prefix information, determine whether the first geographical address carries the host identifier;
  • Step S36 if the host identifier is not carried in the first geographic address, process the communication data packet.
  • the receiver device when the receiver device receives the communication data packet, it first acquires the first geographic address from the destination geographic address. Analyzing the first 5 "layer identifiers" in the first geographic address, if the layer number of the first geographic address is less than the layer number of the subdivision grid code, it indicates that the message is an "abnormal message" and discarded.
  • the first geographic address and the prefix of the subdivision grid code are compared layer by layer, if they are different, then discarded, if they are the same, then the first The host number in a geographic address is compared with the host number in the subdivision grid code, and if they are different, they are discarded, and if they are the same, they are accepted.
  • the message processing method depends on the terminal Whether to enable the positioning application. If the positioning application is not enabled, the communication data message will be discarded. If the positioning application is enabled, the obtained position coordinates will be converted into a 27-layer subdivision grid code through the EMD coding table, and the The subdivision grid code is compared layer by layer with the destination Geo IP prefix in the communication data message until each layer in the destination Geo IP prefix is compared. If they are different, discard them. If they are the same, check the destination Geo IP address. Whether the IP contains the host number, if it contains the host number, it will be discarded, if it does not contain the host number, then the communication data packet will be received.
  • the embodiment of the present application provides corresponding data processing methods in the wireless router device and the receiver device respectively.
  • the wireless routing device can judge whether the message should be broadcast to its coverage sub-addresses by parsing the first geographical address (ie, the destination geographical address) in the received message, and comparing the first geographical address with its own geographical address layer by layer. within the area.
  • the receiving device also judges whether the message should be received by matching the Geo IP layer by layer. If the positioning application is enabled on the terminal, it can support communication services for geographic areas of any granularity in the sub-area.
  • the coordinate information obtained based on the positioning application can be converted into a unique 27-layer Geo IP, and the geographic address and the first geographic address Addresses are matched to determine whether to accept the message. Therefore, the wireless routing device is only responsible for judging whether the data message should be forwarded, and it is up to the receiver device to decide whether to receive the message, so that flexible communication to geographical areas with arbitrary granularity can be realized.
  • the preset encoding rule in the embodiment of the present application is the EMD encoding method, and the specific process is as follows:
  • the global geographic area is divided into multiple grids according to latitude and longitude, and the subdivision grid code is generated by binary coding, and the code is bound to the subdivision grid to realize the identification of any geographic area in the world.
  • the grid granularity of subdivision grid coding is determined by the number of coding layers, the larger the number of layers, the finer the granularity.
  • the coding body is composed of the first 6 layers of coding and 6 to 27 layers of coding. The first 6 layers occupy a total of 21 positions, of which
  • Layer 1 encoding divides the world into 22 geographic regions, occupying 5 bits;
  • the second layer of coding divides the areas of the first layer of coding except for the north and south poles into 4 sub-regions, occupying 2 bits;
  • the third layer divides the subdivided area into 33 sub-areas, occupying 6 bits;
  • Layer 4 divides the area into 4 sub-areas, occupying 2 bits
  • Layer 5 divides the area into 4 sub-areas, occupying 2 bits
  • Layer 6 divides the area into 9 sub-areas, occupying 4 bits
  • Each layer of the 6th to 27th layers divides the area into 4 sub-areas, and each layer occupies 2 bits. Therefore, the subdivision grid coding segment can reach up to 63 bits at most.
  • the coding of the first 6 layers adopts the coding method of line sequence, and the coding of the above 6 layers uses Hilbert curve coding for space sequence recognition.
  • Geo IP a network layer identifier with geographic location semantics that can be used for network addressing.
  • a 5-bit "layer identification” is added at the beginning of the basic subdivision grid coding segment. Therefore, all Geo IPs used to represent "geographical area information" total 68 Since the IPv6 address has a total of 128 bits, the 68-bit Geo IP is placed at the end of the IPv6 address, and the first 60 bits are filled with "12AB:0:0:CD3" as the flag, as shown in Figure 9 .
  • the Geo IP constructed based on the EMD code can identify the geographical area from the network layer without the help of GPS. Since the EMD-based coding method divides the global area into multiple rectangular-like regions (except for the north and south poles) whose granularity can be adjusted according to the number of coding layers, the communication area is divided into multiple "domains" with autonomous capabilities according to the EMD coding method. ", which can directly facilitate the management of the communication area. The structure of the area is shown in Figure 10.
  • the 3rd to 6th floor The Geo IP is used to identify the wireless routing equipment in each domain, and the area covered by the Geo IP is at most about 660 ⁇ 440km 2 , and the smallest is about 55 ⁇ 37km 2 . Furthermore, each domain is divided into multiple "sub-areas" according to the grid division method of EMD, and the 7-27 layer Geo IP is used to identify each The sub-area under the jurisdiction of the domain, the area covered by Geo IP is at most about 27.5 ⁇ 18.5km 2 , and the smallest is about 4 ⁇ 4cm 2 .
  • the wireless AP in each sub-area in the domain is a data plane programmable device.
  • the ASR device of the access network in addition to the traditional IP-based communication function, this device also has the same Geo IP as the sub-area under its jurisdiction. Geo IP addressing.
  • the embodiment of the present application first adopts EMD (empirical mode decomposition, empirical mode decomposition) to divide the global geographic area, and uses Geo IP to uniquely identify the geographical area of arbitrary granularity after division, and uses the network structure of "domain" to communicate Regions are managed, for example: 3-6 levels of Geo IP are allocated to domain-level areas, and 7-27 levels of Geo IP are allocated to each sub-region within each domain.
  • EMD empirical mode decomposition, empirical mode decomposition
  • Fig. 11 is a block diagram of a geographic region-oriented communication system provided by an embodiment of the present application.
  • the system can be implemented as part or all of electronic equipment through software, hardware or a combination of the two. As shown in Figure 11, the system includes:
  • the sender device 2 is configured to determine the first sub-area 7 where the sender device 2 requests communication, and the first geographic address of the first sub-area 7; generate a communication request message according to the first geographical address, wherein the communication request message Used to obtain the first communication address corresponding to the first geographical address, the first communication address is the address of the first wireless routing device 4 that handles the data transmission in the first sub-area 7; send a communication request message to the second wireless routing device 3 ;
  • the second wireless routing device 3 is configured to verify the communication request message, and send the communication request message to the server cluster when the communication request message is verified to pass;
  • the server cluster 1 is configured to determine the first communication address corresponding to the first geographic address according to the stored mapping relationship between the geographical address and the communication address, carry the first communication address in the communication response message, and send it to the second wireless routing device ;
  • the second wireless routing device 3 is configured to receive the communication response message, and forward the communication response message to the sender device;
  • the sender device 2 is configured to receive the communication response message, determine the second geographical address of the second sub-area, and generate a communication data message according to the first geographical address, the second geographical address and the first communication address;
  • the device 3 sends the communication data packet, so that the second wireless routing device 3 forwards the communication data packet to the first wireless routing device 4, and the second wireless routing device broadcasts the communication data packet to the receiver device 5.
  • Geo IP is used as a special "domain name", and a multi-level mapping relationship is designed in the server cluster, so that the method of obtaining the communication address by using the multi-level mapping relationship no longer needs to use the backbone network for IP query, thereby Effectively reduce the network pressure on the backbone network.
  • a regional server for each area the mapping from the Geo IP of each sub-area in each area to the IP address of its wireless routing device is uniformly maintained, which improves the query efficiency; by setting the root server, the local server can communicate according to the geographical location
  • the Geo IP prefix of the region can obtain the IP address of the domain server to be queried.
  • the root server only provides the query index, so there is no need to maintain too many mapping entries.
  • the server cluster 1 includes: a root server 101, a regional server 103 deployed in each area, and a local server 103 deployed in each sub-area;
  • the local service area 103 stores the first mapping relationship between the geographical address of the sub-area and the communication address visited by the wireless routing device corresponding to the sub-area;
  • the second mapping relationship between the geographical address of the area and the communication address of the wireless routing device corresponding to each sub-area in the area is stored in the area server 102;
  • the root server 101 stores a third mapping relationship between geographic addresses of each area and communication addresses of wireless routing devices in each area.
  • the local server 103 is configured to receive the communication request message, and send the communication request message to the regional server when it is determined that there is no first communication address corresponding to the first geographical address according to the first mapping relationship.
  • the regional server 102 is configured to receive the communication request message, and send the first communication address to the local server when it is determined that there is a first communication address corresponding to the first geographic address according to the second mapping relationship;
  • the local server 103 is configured to send the first communication address to the second wireless routing device, and store a mapping relationship between the first geographic address and the first communication address.
  • the regional server 102 receives the communication request message, and sends the communication request message to the root server when it is determined that there is no first communication address corresponding to the first geographic address according to the second mapping relationship;
  • the root server 101 is configured to receive the communication request message, and send the first communication address to the regional server when it is determined that there is a first communication address corresponding to the first geographical address according to the third mapping relationship;
  • the regional server 102 is configured to send the first communication address to the local server, and the local server sends the first communication address to the second wireless routing device.
  • a mobile terminal in the sub-area P1 sends a control message in unicast to a computer device with GeoIP 00111-00010-00-000101-01-10-0011-01-01...11 in the same sub-area P1
  • due to wireless Routing device a is a data plane programmable device, so it can support data forwarding based on the destination Geo IP, and the communication process does not involve querying the communication address.
  • the Geo IP of wireless routing device b is: 00111-00010-00-000101-01-10-0011-10-00...00 (sub-area P2 is a level 7 network), the sub-area P2 Geo IPs of all devices have the same prefix, 00111-00010-00-000101-01-10-0011-10-xx...xx. If the mobile terminal in the sub-area P1 requests broadcast communication with all the smart devices in the room in the sub-area P2, the mobile terminal can send a communication request message with the Geo IP of the wireless routing device b set as the destination geographic address. Since the communication process occurs between different sub-areas, the data cannot be sent directly to the peer.
  • the mobile terminals in the sub-area P1 first need to query the local server S1. If the communication address (ie IP address) of the wireless routing device b exists in the local server S1, the local server S1 will send the wireless route to the mobile terminals in the sub-area P1. The communication address of device b, if the local server S1 does not have the above address, the local server S1 will continue to initiate a query request to the regional server K1 in the domain, and the regional server K1 can return the required IP address to the local server S1, the local server S1 will cache the query results, and further send the results to the mobile terminals in the sub-area P1.
  • the communication address ie IP address
  • the local server S1 will send the wireless route to the mobile terminals in the sub-area P1.
  • the communication address of device b if the local server S1 does not have the above address, the local server S1 will continue to initiate a query request to the regional server K1 in the domain, and the regional server K1 can return the required IP address to the local server S
  • the mobile terminal in the sub-area P1 uses GeoIP+IP message encapsulation according to the obtained IP address, and sends the communication data message to the wireless routing device b, and then the wireless routing device b passes the destination Geo IP to the sub-area Target devices in P2 are addressed and communicate.
  • area B is assigned a 3-level Geo IP 00011-00010-00-000110-00...00
  • the Geo IP of wireless routing device c is 01000-00010-00-000110-01-10-0011-10 -01-00...00
  • the traffic control center in sub-area P1 needs to plan routes and send control messages for vehicles on a certain road section in sub-area P3, in this scenario, the area to be communicated is often a specified granularity Yes, assuming that the destination Geo IP is set to 01001-00010-00-000110-01-10-0011-10-01-01-00...00 (level 9 Geo, IP), since the communication occurs between different areas, so , the traffic control center queries the local server S1 and cannot find the communication address of the wireless routing device c corresponding to the sub-area P3, and the local server S1 queries the regional server K1 of the domain, if the communication address of the wireless routing device c does not exist in the regional server K1 , will initiate a query to the root server, and
  • the local server S1 in area A will further inquire the area server in area B through this communication address, and the wireless routing device can be obtained
  • the communication address of c the regional server in area B will return the communication address of wireless routing device c
  • the local server S1 in area A caches the communication address, and sends the queried communication address back to the traffic control in sub-area P1 Center
  • the traffic control center sends the message to the wireless routing device c through the encapsulation method of Geo IP+IP
  • the wireless routing device c sends the data to all the vehicle communication devices in the sub-region P3 by broadcasting.
  • Fig. 13 is a block diagram of a geographic area-oriented communication device provided by an embodiment of the present application.
  • the device can be implemented as part or all of an electronic device through software, hardware or a combination of the two. As shown in Figure 13, the device includes:
  • a determining module 71 configured to determine a first sub-area where the sender device requests communication, and a first geographic address of the first sub-area;
  • the generating module 72 is configured to generate a communication request message according to the first geographic address, wherein the communication request message is used to obtain a first communication address corresponding to the first geographic address, and the first communication address is used to process data transmission in the first sub-area The address of the first wireless routing device;
  • the query module 73 is configured to send the communication request message to the server cluster, so that the server cluster determines the target communication address corresponding to the first geographic address according to the stored multi-level mapping relationship between the geographic address and the communication address, Carrying the first communication address in the communication response message and sending it;
  • a processing module 74 configured to receive a communication response message fed back by the server cluster, and communicate with the first wireless routing device according to the first communication address carried in the communication response message, so that the first The wireless routing device broadcasts to receiver devices in the first sub-area.
  • Fig. 14 is a block diagram of a geographic region-oriented communication device provided by an embodiment of the present application, and the device can be implemented as part or all of an electronic device through software, hardware or a combination of the two. As shown in Figure 14, the device includes:
  • the receiving module 81 is configured to receive a communication message, wherein the communication message includes a source geographic address, a destination geographic address, and a message type;
  • the first acquiring module 82 is configured to acquire the first geographic address from the destination geographic address, and determine the first layer number in the first geographic address;
  • the second obtaining module 83 is used to obtain the second geographical address stored in the wireless routing device, and determine the second layer number of the second geographical address;
  • a verification module 84 configured to verify the prefix information of the first address information and the second address information to obtain a verification result when the first layer number is greater than or equal to the second layer number;
  • the execution module 85 is configured to execute a processing operation corresponding to the packet type when the verification result indicates that the prefix information of the first address information and the second address information are the same.
  • Fig. 15 is a block diagram of a geographic area-oriented communication device provided by an embodiment of the present application.
  • the device can be implemented as part or all of an electronic device through software, hardware or a combination of the two. As shown in Figure 15, the device includes:
  • the receiving module 91 is configured to receive a communication data message, wherein the communication data message includes a source geographic address and a destination geographic address;
  • the first acquiring module 92 is configured to acquire the first geographic address from the destination geographic address, and determine the first layer number in the first geographic address;
  • the second acquiring module 93 is configured to acquire the coordinate data of the receiver device, encode the coordinate data according to a preset encoding rule to obtain a subdivided grid code, and determine the third layer number of the subdivided grid code;
  • a verification module 94 configured to verify layer by layer the first address information and the subdivided grid coded prefix information when the first layer number is greater than or equal to the third layer number, to obtain a verification result
  • a determining module 95 configured to determine whether the first geographic address carries a host identifier when the verification result indicates that the first address information is the same as the subdivided grid coded prefix information;
  • the processing module 96 is configured to process the communication data packet when the host identifier is not carried in the first geographical address.
  • An embodiment of the present application also provides an electronic device. As shown in FIG.
  • the communication bus 1504 completes mutual communication.
  • Memory 1503 for storing computer programs
  • the processor 1501 is configured to implement the steps of the above-mentioned embodiments when executing the computer program stored in the memory 1503 .
  • the communication bus mentioned in the terminal above may be a Peripheral Component Interconnect (PCI for short) bus or an Extended Industry Standard Architecture (EISA for short) bus or the like.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
  • the communication interface is used for communication between the terminal and other devices.
  • the memory may include a random access memory (Random Access Memory, RAM for short), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
  • non-volatile memory such as at least one disk memory.
  • the memory may also be at least one storage device located far away from the aforementioned processor.
  • the above-mentioned processor can be a general-purpose processor, including a central processing unit (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc.; it can also be a digital signal processor (Digital Signal Processing, referred to as DSP) , Application Specific Integrated Circuit (ASIC for short), Field Programmable Gate Array (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • CPU Central Processing Unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • a computer-readable storage medium is also provided, and instructions are stored in the computer-readable storage medium, and when it is run on a computer, the computer is made to execute any one of the above-mentioned embodiments. Said geographical area-oriented communication method.
  • a computer program product including instructions is also provided, which, when run on a computer, causes the computer to execute the geographic area-oriented communication method described in any one of the above embodiments.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a Solid State Disk).

Abstract

The present application discloses a geographic area-oriented communication method, apparatus and system. In embodiments of the present application, a sender device carries a geographic address of a geographic area to be communicated in a communication request message, and sends the communication request message to a server cluster, and a communication address corresponding to the geographic address can be quickly provided for the sender device by means of a multi-level mapping relationship in the server cluster, so that the sender device communicates, by means of the communication address, with a wireless routing device for processing the geographic area to be communicated, and the wireless routing device performs broadcasting to a receiver device in the geographic area covered by the wireless routing device. Compared with the prior art in which an IP address of a device is obtained by using a database, the query efficiency is improved. Moreover, in the present application, the sender device can directly communicate, by means of the communication address, with the wireless routing device for processing data transmission of the geographic area to be communicated, thereby improving the communication efficiency between the sender device and the geographic area.

Description

一种面向地理区域的通信方法、装置及系统Communication method, device and system for geographical area 技术领域technical field
本申请涉及通信技术领域,尤其涉及一种面向地理区域的通信方法、装置及系统。The present application relates to the technical field of communication, and in particular to a geographical area-oriented communication method, device and system.
背景技术Background technique
随着未来互联网应用和业务的多元化发展,各类互联网应用逐渐出现了与指定地理区域内的对象进行通信的需求,即面向地理位置的通信。然而现阶段主要依赖用于存储用户位置信息的数据库来实现面向地理位置的通信,现阶段网络中大量使用了中间设备(例如网关)以及DHCP协议,用户的IP地址可能是动态变化的,由于IP地址不具备可以描述位置坐标的语义,用户位置的移动将直接导致数据库中的对应的条目失效,而在复杂移动场景下,服务器用于发布和更新映射条目的开销将会是巨大的,且精确度无法得到保证。With the diversified development of Internet applications and services in the future, various Internet applications gradually need to communicate with objects in a specified geographical area, that is, geographical location-oriented communication. However, at this stage, it mainly relies on the database for storing user location information to realize geographical location-oriented communication. At this stage, a large number of intermediate devices (such as gateways) and DHCP protocol are used in the network, and the user's IP address may change dynamically. The address does not have the semantics that can describe the location coordinates. The movement of the user's location will directly cause the corresponding entries in the database to become invalid. In complex mobile scenarios, the server's overhead for publishing and updating mapping entries will be huge and accurate. degree cannot be guaranteed.
并且基于车联网技术所提供的能够实现面向地理位置通信的方案,当目标区域范围较小时,需要部署多个RSU实现区域覆盖,这无疑将会增加实现成本,并且区域内设备的频繁移动会导致RSU需要频繁的为下辖设备分配IP,信令报文将会占用接入网过多的带宽,不利于实现未来互联网中面向地理区域通信业务的发展。And based on the solution provided by the Internet of Vehicles technology that can realize geographic location-oriented communication, when the target area is small, it is necessary to deploy multiple RSUs to achieve area coverage, which will undoubtedly increase the cost of implementation, and frequent movement of devices in the area will lead to The RSU needs to frequently assign IPs to the devices under its jurisdiction, and the signaling packets will occupy too much bandwidth of the access network, which is not conducive to the development of communication services oriented to geographical areas in the Internet in the future.
发明内容Contents of the invention
为了解决上述技术问题或者至少部分地解决上述技术问题,本申请提供了一种面向地理区域的通信方法、装置及系统。In order to solve the above technical problems or at least partly solve the above technical problems, the present application provides a geographical area-oriented communication method, device and system.
根据本申请实施例的一个方面,提供了一种面向地理区域的通信方法,其特征在于,应用于发送方设备,所述方法包括:According to an aspect of an embodiment of the present application, there is provided a geographical area-oriented communication method, which is characterized in that it is applied to a sender device, and the method includes:
确定所述发送方设备请求通信的第一子区域,以及所述第一子区域的第一地理地址;determining a first subregion in which the sender device requests communication, and a first geographic address of the first subregion;
根据所述第一地理地址生成通信请求报文,其中,所述通信请求报文用于获取所述第一地理地址对应的第一通信地址,所述第一通信地址为处理所述第一子区域中数据传输的第一无线路由设备的地址;Generate a communication request message according to the first geographic address, where the communication request message is used to obtain a first communication address corresponding to the first geographic address, and the first communication address is used to process the first sub- the address of the first wireless routing device for data transmission in the area;
向服务器集群发送所述通信请求报文,以使所述服务器集群根据存储的地理地址与通信地址的多级映射关系,确定所述第一地理地址对应的目标通信地址,将所述第一通信地址携带在通信应答报文并发送;sending the communication request message to the server cluster, so that the server cluster determines the target communication address corresponding to the first geographical address according to the stored multi-level mapping relationship between the geographical address and the communication address, and transmits the first communication The address is carried in the communication response message and sent;
接收所述服务器集群反馈的通信应答报文,并根据所述通信应答报文中携带的第一通信地址与所述第一无线路由设备进行通信,以使所述第一无线路由设备对所述第一子区域内的接收方设备进行广播。receiving the communication response message fed back by the server cluster, and communicating with the first wireless routing device according to the first communication address carried in the communication response message, so that the first wireless routing device can respond to the Receiver devices within the first sub-area broadcast.
进一步地,所述向服务器集群发送所述通信请求报文,包括:Further, the sending the communication request message to the server cluster includes:
确定所述发送方设备所在的第二子区域,以及用于处理所述第二子区域中数据传输的第二无线路由设备;determining a second sub-area where the sender device is located, and a second wireless routing device for processing data transmission in the second sub-area;
向所述第二无线路由设备发送所述通信请求报文,以使所述第二无线理由设备将所述通信请求报文转发至所述服务器集群。Sending the communication request packet to the second wireless routing device, so that the second wireless routing device forwards the communication request packet to the server cluster.
进一步地,所述接收所述服务器集群反馈的通信应答报文,并根据所述通信应答报文中携带的第一通信地址与所述第一无线路由设备进行通信,包括:Further, the receiving the communication response message fed back by the server cluster, and communicating with the first wireless routing device according to the first communication address carried in the communication response message includes:
确定所述第二子区域的第二地理地址;determining a second geographic address of said second sub-area;
根据所述第一地理地址、第二地理地址以及第一通信地址生成通信数据报文;generating a communication data packet according to the first geographic address, the second geographic address, and the first communication address;
向所述第二无线路由设备发送所述通信数据报文,以使所述第二无线路由设备将所述通信数据报文转发至所述第一无线路由设备,并由所述第二无线路由设备将所述通信数据报文广播至接收方设备。sending the communication data packet to the second wireless routing device, so that the second wireless routing device forwards the communication data packet to the first wireless routing device, and the second wireless routing device The device broadcasts the communication data packet to the receiver device.
根据本申请实施例的再一个方面,还提供了一种面向地理区域的通信方法,应用于无线路由设备,所述方法包括:According to still another aspect of the embodiment of the present application, a geographical area-oriented communication method is also provided, which is applied to a wireless routing device, and the method includes:
接收通信报文,其中,所述通信报文包括源地理地址、目的地理地址以及报文类型;receiving a communication message, wherein the communication message includes a source geographic address, a destination geographic address, and a message type;
在所述目的地理地址为第一地理地址的情况下,确定所述第一地理地址中的第一层数;If the destination geographic address is a first geographic address, determine a first layer number in the first geographic address;
获取所述无线路由设备中存储的第二地理地址,并确定所述第二地理地址的第二层数;Obtaining a second geographic address stored in the wireless routing device, and determining a second layer number of the second geographic address;
在所述第一层数大于或等于第二层数的情况下,将所述第一地址信息的与所述第二地址信息的前缀信息进行逐层校验,得到校验结果;When the first number of layers is greater than or equal to the second number of layers, verifying the prefix information of the first address information and the second address information layer by layer to obtain a verification result;
在所述校验结果用于指示所述第一地址信息与所述第二地址信息的前缀信息相同的情况下,执行所述报文类型对应的处理操作。In a case where the verification result indicates that the first address information is the same as the prefix information of the second address information, a processing operation corresponding to the packet type is performed.
进一步地,在所述报文类型用于指示所述通信报文为通信应答报文的情况下,所述执行所述报文类型对应的处理操作,包括:Further, in the case where the message type is used to indicate that the communication message is a communication response message, performing the processing operation corresponding to the message type includes:
发送所述通信应答报文至所述通信应答报文中携带的目的地理地址对应的发送方设备。Sending the communication response message to the sender device corresponding to the destination geographic address carried in the communication response message.
进一步地,在所述报文类型用于指示所述通信报文为通信数据报文的情况下,所述执行所述报文类型对应的处理操作,包括:Further, in the case where the message type is used to indicate that the communication message is a communication data message, performing the processing operation corresponding to the message type includes:
广播所述通信数据报文至所述无线路由设备对应子区域中的接收方设备。broadcasting the communication data packet to receiver devices in the sub-area corresponding to the wireless routing device.
根据本申请实施例的再一个方面,还提供了一种面向地理区域的通信方法,应用于接收方设备,所述方法包括:According to still another aspect of the embodiments of the present application, a geographical area-oriented communication method is also provided, which is applied to a receiver device, and the method includes:
接收通信数据报文,其中,所述通信数据报文包括源地理地址以及目的地理地址;receiving a communication data message, wherein the communication data message includes a source geographic address and a destination geographic address;
在所述目的地理地址为第一地理地址的情况下,确定所述第一地理地址中的第一层数;If the destination geographic address is a first geographic address, determine a first layer number in the first geographic address;
获取所述接收方设备的坐标数据,并将所述坐标数据按照预设编码规则进行编码得到细分网格编码,并确定所述细分网格编码的第三层数;Acquiring the coordinate data of the receiver device, encoding the coordinate data according to a preset encoding rule to obtain a subdivision grid code, and determining the third layer number of the subdivision grid code;
在所述第一层数大于或等于所述第三层数的情况下,将所述第一地址信息的与所述细分网格编码的前缀信息进行逐层校验,得到校验结果;When the number of the first layer is greater than or equal to the number of the third layer, performing layer-by-layer verification of the first address information and the prefix information coded with the subdivision grid to obtain a verification result;
在所述校验结果用于指示所述第一地址信息与所述细分网格编码的前缀信息相同的情况下,确定所述第一地理地址中是否携带主机标识;In the case where the verification result is used to indicate that the first address information is the same as the subdivided grid coded prefix information, determine whether the first geographic address carries a host identifier;
在所述第一地理地址中不携带所述主机标识的情况下,处理所述通信数据报文。If the first geographical address does not carry the host identifier, process the communication data packet.
根据本申请实施例的再一个方面,还提供了一种面向地理区域的通信系统,包括:服务器集群,位于第一子区域的第一无线路由设备和接收方设备,以及位于第二子区域的发送方设备和第二无线路由设备;According to still another aspect of the embodiment of the present application, a communication system oriented to a geographical area is also provided, including: a server cluster, a first wireless routing device and a receiver device located in a first sub-area, and a communication system located in a second sub-area a sender device and a second wireless routing device;
所述发送方设备,用于确定所述发送方设备请求通信的第一子区域,以及所述第一子区域的第一地理地址;根据所述第一地理地址生成通信请求报文,其中,所述通信请求报文用于获取所述第一地理地址对应的第一通信地址,所述第一通信地址为处理所述第一子区域中数据传输的第一无线路由设备的地址;向所述第二无线路由设备发送所述通信请求报文;The sender device is configured to determine a first sub-area where the sender device requests communication, and a first geographical address of the first sub-area; generate a communication request message according to the first geographical address, wherein, The communication request message is used to obtain a first communication address corresponding to the first geographical address, and the first communication address is an address of a first wireless routing device that handles data transmission in the first sub-area; The second wireless routing device sends the communication request message;
所述第二无线路由设备,用于对所述通信请求报文进行校验,在所述通信请求报文校验通过的情况下,向所述服务器集群发送所述通信请求报文;The second wireless routing device is configured to verify the communication request message, and send the communication request message to the server cluster if the communication request message passes the verification;
所述服务器集群,用于根据存储的地理地址与通信地址的映射关系,确定所述第一地理地址对应的第一通信地址,将所述第一通信地址携带在通信应答报文,并发送至所述第二无线路由设备;The server cluster is configured to determine the first communication address corresponding to the first geographic address according to the stored mapping relationship between the geographic address and the communication address, carry the first communication address in the communication response message, and send it to the second wireless routing device;
所述第二无线路由设备,用于接收所述通信应答报文,并将所述通信应答报文转发至所述发送方设备;The second wireless routing device is configured to receive the communication response message, and forward the communication response message to the sender device;
所述发送方设备,用于接收所述通信应答报文,确定所述第二子区域的第二地理地址,根据所述第一地理地址、第二地理地址以及第一通信地址生成通信数据报文;向所述第二无线路由设备发送所述通信数据报文,以使所述第二无线路由设备将所述通信数据报文转发至所述第一无线路由设备,并由所述第二无线路由设备将所述通信数据报文广播至所述接收方设备。The sender device is configured to receive the communication response message, determine the second geographic address of the second sub-area, and generate a communication datagram according to the first geographic address, the second geographic address, and the first communication address text; send the communication data packet to the second wireless routing device, so that the second wireless routing device forwards the communication data packet to the first wireless routing device, and the second wireless routing device forwards the communication data packet to the first wireless routing device The wireless routing device broadcasts the communication data packet to the receiver device.
进一步地,所述服务器集群包括:根服务器,部署在各个区域的区域服务器以及部署在各个子区域内的本地服务器;Further, the server cluster includes: a root server, regional servers deployed in each area, and local servers deployed in each sub-area;
其中,所述本地服务区中存储有子区域的地理地址与子区域对应无线路由设备访问过的通信地址与之间第一映射关系;Wherein, the first mapping relationship between the geographical address of the sub-area and the communication address visited by the wireless routing device corresponding to the sub-area is stored in the local service area;
所述区域服务器中存储有区域的地理地址与所述区域内各个子区域对应无线路由设备的通信地址之间的第二映射关系;The second mapping relationship between the geographical address of the area and the communication address of the wireless routing device corresponding to each sub-area in the area is stored in the area server;
所述根服务器,所述根服务器中存储有各个区域的地理地址与各个区域中无线路由设备的通信地址之间的第三映射关系。The root server stores a third mapping relationship between geographic addresses of each area and communication addresses of wireless routing devices in each area.
进一步地,所述本地服务器,用于接收所述通信请求报文,在根据所述第一映射关系,确定不存在所述第一地理地址对应的第一通信地址的情况下,向所述区域服务器发送所述通信请求报文;Further, the local server is configured to receive the communication request message, and send a message to the area when it is determined that there is no first communication address corresponding to the first geographical address according to the first mapping relationship. The server sends the communication request message;
所述区域服务器,用于接收所述通信请求报文,在根据所述第二映射关系,确定存在所述第一地理地址对应的第一通信地址的情况下,向所述本地服务器发送所述第一通信地址;The regional server is configured to receive the communication request message, and send the communication request message to the local server when it is determined that there is a first communication address corresponding to the first geographic address according to the second mapping relationship. the first mailing address;
所述本地服务器,用于发送所述第一通信地址发送至所述第二无线路由设备,并存储所述第一地理地址与第一通信地址的映射关系。The local server is configured to send the first communication address to the second wireless routing device, and store a mapping relationship between the first geographical address and the first communication address.
进一步地,所述区域服务器,接收所述通信请求报文,在根据所述第二映射关系,确定不存在所述第一地理地址对应的第一通信地址的情况下,向所述根服务器发送所述通信请求报文;Further, the regional server receives the communication request message, and sends the communication request message to the root server when it is determined that there is no first communication address corresponding to the first geographic address according to the second mapping relationship. The communication request message;
所述根服务器,用于接收所述通信请求报文,在根据所述第三映射关系,确定存在所述第一地理地址对应的第一通信地址的情况下,向所述区域服务器发送所述第一通信地址;The root server is configured to receive the communication request message, and when it is determined according to the third mapping relationship that there is a first communication address corresponding to the first geographic address, send the communication request message to the area server. the first mailing address;
所述区域服务器,用于向所述本地服务器发送所述第一通信地址,并由所述本地服务器将所述第一通信地址发送至所述第二无线路由设备。The regional server is configured to send the first communication address to the local server, and the local server sends the first communication address to the second wireless routing device.
根据本申请实施例的再一个方面,还提供了一种通信请求处理装置,包括:According to still another aspect of the embodiments of the present application, a communication request processing device is also provided, including:
确定模块,用于确定发送方设备请求通信的第一子区域,以及所述第一子区域的第一地理地址;A determining module, configured to determine a first sub-area where the sender device requests communication, and a first geographic address of the first sub-area;
生成模块,用于根据所述第一地理地址生成通信请求报文,其中,所述通信请求报文用于获取所述第一地理地址对应的第一通信地址,所述第一通信地址为处理所述第一子区域中数据传输的第一无线路由设备的地址;A generating module, configured to generate a communication request message according to the first geographical address, wherein the communication request message is used to obtain a first communication address corresponding to the first geographical address, and the first communication address is a processing the address of the first wireless routing device for data transmission in the first sub-area;
查询模块,用于向服务器集群发送所述通信请求报文,以使所述服务器集群根据存储的地理地址与通信地址的多级映射关系,确定所述第一地理地址对应的目标通信地址,将所述第一通信地址携带在通信应答报文并发送;A query module, configured to send the communication request message to the server cluster, so that the server cluster determines the target communication address corresponding to the first geographic address according to the stored multi-level mapping relationship between the geographic address and the communication address, and sends the The first communication address is carried in the communication response message and sent;
处理模块,用于接收所述服务器集群反馈的通信应答报文,并根据所述通信应答报文中携带的第一通信地址与所述第一无线路由设备进行通信,以使所述第一无线路由设备对所述第一子区域内的接收方设备进行广播。A processing module, configured to receive a communication response message fed back by the server cluster, and communicate with the first wireless routing device according to the first communication address carried in the communication response message, so that the first wireless routing device The routing device broadcasts to receiver devices in the first sub-area.
根据本申请实施例的再一个方面,还提供了一种通信请求处理装置,包括:According to still another aspect of the embodiments of the present application, a communication request processing device is also provided, including:
接收模块,用于接收通信报文,其中,所述通信报文包括源地理地址、目的地理地址以及报文类型;A receiving module, configured to receive a communication message, wherein the communication message includes a source geographic address, a destination geographic address, and a message type;
第一获取模块,用于在所述目的地理地址为第一地理地址的情况下,确定所述第一地理地址中的第一层数;A first acquiring module, configured to determine the first layer number in the first geographic address when the destination geographic address is the first geographic address;
第二获取模块,用于获取无线路由设备中存储的第二地理地址,并确定所述第二地理地址的第二层数;A second acquiring module, configured to acquire a second geographic address stored in the wireless routing device, and determine a second layer number of the second geographic address;
校验模块,用于在所述第一层数大于或等于第二层数的情况下,将所述第一地址信息的与所述第二地址信息的前缀信息进行校验,得到校验结果;A verification module, configured to verify the prefix information of the first address information and the second address information when the first layer number is greater than or equal to the second layer number, and obtain a verification result ;
执行模块,用于在所述校验结果用于指示所述第一地址信息与所述第二地址信息的前缀信息相同的情况下,执行所述报文类型对应的处理操作。An execution module, configured to execute a processing operation corresponding to the packet type when the verification result indicates that the prefix information of the first address information is the same as that of the second address information.
根据本申请实施例的再一个方面,还提供了一种通信请求处理装置,包括:According to still another aspect of the embodiments of the present application, a communication request processing device is also provided, including:
接收模块,用于接收通信数据报文,其中,所述通信数据报文包括源地理地址以及目的地理地址;A receiving module, configured to receive a communication data message, wherein the communication data message includes a source geographic address and a destination geographic address;
第一获取模块,用于在所述目的地理地址为第一地理地址的情况下,确定所述第一地理地址中的第一层数;A first acquiring module, configured to determine the first layer number in the first geographic address when the destination geographic address is the first geographic address;
第二获取模块,用于获取所述接收方设备的坐标数据,并将所述坐标数据按照预设编码规则进行编码得到细分网格编码,并确定所述细分网格编码的第三层数;The second acquisition module is configured to acquire the coordinate data of the receiver device, encode the coordinate data according to a preset encoding rule to obtain a subdivision grid code, and determine the third layer of the subdivision grid code number;
校验模块,用于在所述第一层数大于或等于所述第三层数的情况下,将所述第一地址信息的与所述细分网格编码的前缀信息进行逐层校验,得到校验结果;A verification module, configured to perform layer-by-layer verification of the prefix information encoded with the subdivision grid of the first address information when the first layer number is greater than or equal to the third layer number , get the verification result;
确定模块,用于在所述校验结果用于指示所述第一地址信息与所述细分网格编码的前缀信息相同的情况下,确定所述第一地理地址中是否携带主机标识;A determining module, configured to determine whether the first geographic address carries a host identifier when the verification result indicates that the first address information is the same as the subdivided grid coded prefix information;
处理模块,用于在所述第一地理地址中不携带所述主机标识的情况下,处理所述通信数据报文。A processing module, configured to process the communication data packet when the host identifier is not carried in the first geographical address.
根据本申请实施例的另一方面,还提供了一种存储介质,该存储介质包括存储的程序,程序运行时执行上述的步骤。According to another aspect of the embodiments of the present application, a storage medium is further provided, the storage medium includes a stored program, and the above steps are executed when the program runs.
根据本申请实施例的另一方面,还提供了一种电子装置,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;其中:存储器,用于存放计算机程序;处理器,用于通过运行存储器上所存放的程序来执行上述方法中的步骤。According to another aspect of the embodiment of the present application, an electronic device is also provided, including a processor, a communication interface, a memory, and a communication bus, wherein, the processor, the communication interface, and the memory complete mutual communication through the communication bus; wherein: The memory is used to store computer programs; the processor is used to execute the steps in the above method by running the programs stored in the memory.
本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述方法中的步骤。The embodiment of the present application also provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the steps in the above method.
本申请实施例提供的上述技术方案与现有技术相比具有如下优点:本申请实施例中发送方设备将待通信地理区域的地理地址携带在通信请求报文,并将通信请求报文发送至服务器集群,通过服务器集群中的多级映射关系可以快速为发送方设备提供地理地址对应的通信地址,以使发送方设备利用通信地址与用于处理待通信地理区域的无线路由设备进行通信,从而利用无线路由设备对其覆盖的地理区域内的接收方设备进行广播。相比现有技术中采用数据库的方式获取用户设备的IP地址,提高了查询效率。同时本申请中使发送方设备利用通信地址直接与用于处理待通信地理区域的无线路由设备进行通信,提高了发送方设备与地理区域之间的通信效率。Compared with the prior art, the above-mentioned technical solution provided by the embodiment of the present application has the following advantages: In the embodiment of the present application, the sender device carries the geographical address of the geographical area to be communicated in the communication request message, and sends the communication request message to The server cluster, through the multi-level mapping relationship in the server cluster, can quickly provide the communication address corresponding to the geographical address for the sender device, so that the sender device uses the communication address to communicate with the wireless routing device for processing the geographical area to be communicated, thereby Use the wireless routing device to broadcast to receiver devices within the geographical area covered by it. Compared with the way of acquiring the IP address of the user equipment in the prior art using a database, the query efficiency is improved. At the same time, in this application, the sender device uses the communication address to directly communicate with the wireless routing device for processing the geographical area to be communicated, which improves the communication efficiency between the sender device and the geographical area.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings without paying creative labor.
图1为本申请实施例提供的一种面向地理区域的通信方法的流程图;FIG. 1 is a flow chart of a geographical area-oriented communication method provided by an embodiment of the present application;
图2为本申请另一实施例提供的一种面向地理区域的通信方法的流程图;FIG. 2 is a flow chart of a geographic area-oriented communication method provided by another embodiment of the present application;
图3为本申请另一实施例提供的一种面向地理区域的通信方法的流程图;FIG. 3 is a flow chart of a geographical area-oriented communication method provided by another embodiment of the present application;
图4为本申请实施例提供的一种EMD编码的示意图;Fig. 4 is the schematic diagram of a kind of EMD coding that the embodiment of the present application provides;
图5为本申请实施例提供的一种EMD编码的示意图;Fig. 5 is the schematic diagram of a kind of EMD coding that the embodiment of the present application provides;
图6为本申请实施例提供的一种EMD编码的示意图;FIG. 6 is a schematic diagram of an EMD code provided by an embodiment of the present application;
图7为本申请实施例提供的一种EMD编码的示意图;FIG. 7 is a schematic diagram of an EMD code provided in an embodiment of the present application;
图8为本申请实施例提供的一种EMD编码的示意图;FIG. 8 is a schematic diagram of an EMD code provided in an embodiment of the present application;
图9为本申请实施例提供的地理地址的结构示意图;FIG. 9 is a schematic structural diagram of a geographic address provided by an embodiment of the present application;
图10为本申请实施例提供的域内的通信结构示意图;FIG. 10 is a schematic diagram of a communication structure within a domain provided by an embodiment of the present application;
图11为本申请实施例提供的一种面向地理区域的通信系统的框图;FIG. 11 is a block diagram of a geographical area-oriented communication system provided by an embodiment of the present application;
图12为本申请另一实施例提供的一种面向地理区域的通信系统的示意图;FIG. 12 is a schematic diagram of a geographical area-oriented communication system provided by another embodiment of the present application;
图13为本申请实施例提供的一种面向地理区域的通信装置的框图;FIG. 13 is a block diagram of a geographical area-oriented communication device provided by an embodiment of the present application;
图14为本申请另一实施例提供的一种面向地理区域的通信装置的框图;FIG. 14 is a block diagram of a geographical area-oriented communication device provided by another embodiment of the present application;
图15为本申请另一实施例提供的一种面向地理区域的通信装置的框图;FIG. 15 is a block diagram of a geographic area-oriented communication device provided by another embodiment of the present application;
图16为本申请实施例提供的一种电子设备的结构示意图。FIG. 16 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式detailed description
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请的一部分实施例,而不是全部的实施例,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, 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. Obviously, the described embodiments It is a part of the embodiments of the present application, rather than all the embodiments. The schematic embodiments of the present application and their descriptions are used to explain the present application, and do not constitute an improper limitation of the present application. Based on the embodiments in the present application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present application.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个类似的实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含, 从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relative terms such as "first" and "second" are only used to distinguish one entity or operation from another similar entity or operation, and do not necessarily require or Any such actual relationship or order between such entities or operations is implied. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
本申请实施例提供了一种面向地理区域的通信方法、装置及系统。本申请实施例所提供的方法可以应用于任意需要的电子设备,例如,可以为服务器、终端等电子设备,在此不做具体限定,为描述方便,后续简称为电子设备。Embodiments of the present application provide a geographical area-oriented communication method, device, and system. The method provided in the embodiment of the present application can be applied to any required electronic device, for example, it can be an electronic device such as a server or a terminal, which is not specifically limited here, and for convenience of description, it will be referred to as an electronic device for short.
根据本申请实施例的一方面,提供了一种面向地理区域的通信方法的方法实施例。图1为本申请实施例提供的一种面向地理区域的通信方法的流程图,如图1所示,该方法包括:According to an aspect of the embodiments of the present application, a method embodiment of a geographical area-oriented communication method is provided. Fig. 1 is a flow chart of a geographical area-oriented communication method provided by the embodiment of the present application. As shown in Fig. 1, the method includes:
步骤S11,确定发送方设备请求通信的第一子区域,以及第一子区域的第一地理地址。Step S11, determining the first sub-area where the sender device requests communication, and the first geographic address of the first sub-area.
在本申请实施例中,子区域是通过对全域内的某个区域进行划分得到的,地理地址为Geo IP,Geo具有地理位置语义,每一个子区域对应一个Geo IP,每个区域也对应一个Geo IP。In the embodiment of this application, the sub-areas are obtained by dividing a certain area in the whole domain. The geographic address is Geo IP, and Geo has geographic location semantics. Each sub-area corresponds to a Geo IP, and each area also corresponds to a Geo IP. Geo IP.
其中,Geo IP是于EMD的编码方法构造Geo IP,并对任意粒度的地理区域进行唯一标识。基于EMD的编码方法首先按照经纬度将全球地理区域划分为多个网格,采用二进制编码的方式生成细分网格编码,并将编码与细分网格进行绑定,实现对全域任意地理区域进行标识。Among them, Geo IP is based on the encoding method of EMD to construct Geo IP, and uniquely identify geographic regions of any granularity. The EMD-based coding method first divides the global geographic area into multiple grids according to latitude and longitude, uses binary coding to generate subdivided grid codes, and binds the codes to the subdivided grids to realize the real-time data analysis of any geographic area in the whole domain. logo.
在本申请实施例中,当发送方设备需要与第一子区域建立通信连接时,发送方设备会查询第一子区域对应的第一地理地址(即第一Geo IP)。In the embodiment of the present application, when the sender device needs to establish a communication connection with the first sub-area, the sender device will query the first geographic address (that is, the first Geo IP) corresponding to the first sub-area.
步骤S12,根据第一地理地址生成通信请求报文,其中,通信请求报文用于获取第一地理地址对应的第一通信地址,第一通信地址为处理第一子区域中数据传输的第一无线路由设备的地址。Step S12, generating a communication request message according to the first geographical address, wherein the communication request message is used to obtain a first communication address corresponding to the first geographical address, and the first communication address is the first communication address for processing data transmission in the first sub-area. The address of the wireless routing device.
在本申请实施例中,仅仅根据第一地理地址无法与第一子区域建立通信,为此还需要获取第一子区域的第一通信地址。所以本申请根据第一地理地址生成通信请求报文,生成过程包括:确定发送方设备所在的第二子区域的第二地理地址,将第一地理地址作为目的地理地址、第二地理地址作为源地理地址生成通信请求报文。In the embodiment of the present application, the communication with the first sub-area cannot be established only based on the first geographic address, and therefore the first communication address of the first sub-area needs to be acquired. Therefore, this application generates a communication request message according to the first geographic address. The generation process includes: determining the second geographic address of the second sub-area where the sending device is located, using the first geographic address as the destination geographic address, and the second geographic address as the source The geographic address generates a communication request message.
需要说明的是,本申请实施例中,每一个子区域都会对应一个无线路由设备,无线路由设备用于处理子区域内通信设备的数据传输,例如数据发送、转发以及接收等等。It should be noted that, in the embodiment of the present application, each sub-area corresponds to a wireless routing device, and the wireless routing device is used to process data transmission of communication devices in the sub-area, such as data sending, forwarding, and receiving.
步骤S13,向服务器集群发送通信请求报文,以使服务器集群根据存储的地理地址与通信地址的多级映射关系,确定第一地理地址对应的目标通信地址,将第一通信地址携带在通信应答报文并发送。Step S13, sending a communication request message to the server cluster, so that the server cluster determines the target communication address corresponding to the first geographic address according to the stored multi-level mapping relationship between the geographical address and the communication address, and carries the first communication address in the communication response message and send it.
在本申请实施例中,由于服务器集群中存储有地理地址与通信地址之间的映射关系,因此发送方设备将通信请求报文发送至服务器集群,可以得到第一地理地址对应的第一通信地址(即第一无线路由设备的IP地址)。其中,本申请实施例将地理地址与通信地址之间的映射关系存储在服务器集群中,以此保证区域之间通信的安全性。In the embodiment of the present application, since the server cluster stores the mapping relationship between the geographical address and the communication address, the sender device sends the communication request message to the server cluster, and the first communication address corresponding to the first geographical address can be obtained (that is, the IP address of the first wireless routing device). Wherein, in the embodiment of the present application, the mapping relationship between the geographical address and the communication address is stored in the server cluster, so as to ensure the security of communication between regions.
在本申请实施例中,步骤S13,向服务器集群发送通信请求报文,包括以下步骤步骤A1至A2:In the embodiment of the present application, step S13, sending a communication request message to the server cluster, includes the following steps Steps A1 to A2:
步骤A1,确定发送方设备所在的第二子区域,以及用于处理第二子区域中数据传输的第二无线路由设备;Step A1, determining the second sub-area where the sender device is located, and a second wireless routing device for processing data transmission in the second sub-area;
步骤A2,向第二无线路由设备发送通信请求报文,以使第二无线理由设备将通信请求报文转发至服务器集群。Step A2, sending the communication request message to the second wireless router device, so that the second wireless router device forwards the communication request message to the server cluster.
在本申请实施例中,由于第二无线路由设备用于处理发送方设备所在区域的数据传输,因此发送方设备首先将通信请求报文发送至第二无线路由设备,经过第二无线路由设备对通信请求报文进行校验成功后,再由第二无线路由设备将通信请求报文发送至服务器集群。In this embodiment of the application, since the second wireless routing device is used to process data transmission in the area where the sending device is located, the sending device first sends the communication request message to the second wireless routing device, and the second wireless routing device After the communication request message is verified successfully, the second wireless routing device sends the communication request message to the server cluster.
步骤S14,接收服务器集群反馈的通信应答报文,并根据通信应答报文中携带的第一通信地址与第一无线路由设备进行通信,以使第一无线路由设备对第一子区域内的接收方设备进行广播。Step S14, receiving the communication response message fed back by the server cluster, and communicating with the first wireless routing device according to the first communication address carried in the communication response message, so that the first wireless routing device can receive information in the first sub-area The other device broadcasts.
在本申请实施例中,步骤S14,接收服务器集群反馈的通信应答报文,并根据通信应答报文中携带的第一通信地址与第一无线路由设备进行通信,包括以下步骤B1至B3:In the embodiment of the present application, step S14 is to receive the communication response message fed back by the server cluster, and communicate with the first wireless routing device according to the first communication address carried in the communication response message, including the following steps B1 to B3:
步骤B1,确定第二子区域的第二地理地址;Step B1, determining the second geographical address of the second sub-area;
步骤B2,根据第一地理地址、第二地理地址以及第一通信地址生成通信数据报文;Step B2, generating a communication data message according to the first geographical address, the second geographical address and the first communication address;
步骤B3,向第二无线路由设备发送通信数据报文,以使第二无线路由设备将通信数据报文转发至第一无线路由设备,并由第二无线路由设备将通信数据报文广播至接收方设备。Step B3, sending the communication data message to the second wireless routing device, so that the second wireless routing device forwards the communication data message to the first wireless routing device, and the second wireless routing device broadcasts the communication data message to the receiver square equipment.
在本申请实施例中,获得第一子区域对应的第一无线路由设备的第一通信地址后,采用报文外添加IP封装的方式生成通信数据报文(其中,第一地理地址为目的地理地址,第二地理地址为源地理地址),将通信数据报文发送至第二无线路由设备,第二无线路由设备进一步根据通信数据报文中携带的Geo IP进行校验,如果校验成功后,第二无线路由则将通信数据报文发送至第一无线路由设备,从而实现发送方设备面向地理区域的通信。In the embodiment of the present application, after obtaining the first communication address of the first wireless routing device corresponding to the first sub-area, the communication data message is generated by adding IP encapsulation outside the message (wherein the first geographical address is the destination geographic address). address, the second geographic address is the source geographic address), the communication data message is sent to the second wireless routing device, and the second wireless routing device further checks according to the Geo IP carried in the communication data message, if the verification succeeds , the second wireless router sends the communication data packet to the first wireless router device, so as to realize the communication of the sender device facing the geographical area.
图2为本申请实施例提供的一种面向地理区域的通信方法的流程图,如图2所示,该方法应用于无线路由设备,可以包括以下步骤:Fig. 2 is a flow chart of a geographical region-oriented communication method provided by the embodiment of the present application. As shown in Fig. 2, the method is applied to a wireless routing device and may include the following steps:
步骤S21,接收通信报文,其中,通信报文包括源地理地址、目的地理地址以及报文类型;Step S21, receiving a communication message, wherein the communication message includes a source geographic address, a destination geographic address, and a message type;
步骤S22,在目的地理地址为第一地理地址的情况下,确定第一地理地址中的第一层数;Step S22, if the destination geographic address is the first geographic address, determine the first layer number in the first geographic address;
步骤S23,获取无线路由设备中存储的第二地理地址,并确定第二地理地址的第二层数;Step S23, obtaining the second geographic address stored in the wireless routing device, and determining the second layer number of the second geographic address;
步骤S24,在第一层数大于或等于第二层数的情况下,将第一地址信息的与第二地址信息的前缀信息进行逐层校验,得到校验结果;Step S24, in the case that the number of the first layer is greater than or equal to the number of the second layer, verifying the prefix information of the first address information and the second address information layer by layer to obtain a verification result;
在本申请实施例中,若通信报文中第一地理地址的层数大于或等于自身存储地理地址的层数,则将该第一地理地址的前缀与自身存储第一地理地址的前缀进行逐层对比,直到自身地理地址前缀中的每一层都对比完毕,若不同,则丢弃;若相同,则接收。In this embodiment of the application, if the layer number of the first geographic address in the communication message is greater than or equal to the layer number of the geographic address stored in itself, the prefix of the first geographic address is compared with the prefix of the first geographic address stored in itself. Layer comparison, until each layer in the geographic address prefix of its own is compared, if they are different, they will be discarded; if they are the same, they will be accepted.
若报文中第一地理地址的层数小于自身存储的地理地址的层数,则表明该报文为“异常报文”并丢弃。If the layer number of the first geographic address in the message is less than the layer number of the geographical address stored in the message, it indicates that the message is an "abnormal message" and is discarded.
步骤S25,在校验结果用于指示第一地址信息与第二地址信息的前缀信息相同的情况下,执行报文类型对应的处理操作。Step S25, when the verification result indicates that the prefix information of the first address information and the second address information are the same, perform a processing operation corresponding to the message type.
在本申请实施例中,在报文类型用于指示通信报文为通信应答报文的情况下,执行报文类型对应的处理操作,包括以下步骤C1:In the embodiment of the present application, when the message type is used to indicate that the communication message is a communication response message, the processing operation corresponding to the message type is performed, including the following steps C1:
步骤C1,发送通信应答报文至通信应答报文中携带的目的地理地址对应的发送方设备。Step C1, sending a communication response message to the sender device corresponding to the destination geographic address carried in the communication response message.
在本申请实施例中,在报文类型用于指示通信报文为通信数据报文的情况下,执行报文类型对应的处理操作,包括以下步骤C2:In the embodiment of the present application, when the message type is used to indicate that the communication message is a communication data message, the processing operation corresponding to the message type is performed, including the following step C2:
步骤C2,广播通信数据报文至无线路由设备对应子区域中的接收方设备。Step C2, broadcasting the communication data message to receiver devices in the sub-area corresponding to the wireless routing device.
在本申请实施例中,无线路由设备为数据平面可编程设备,其可以为子区域内的终端设备分配具有该子区域Geo IP前缀的Geo IP。与用于标识地理位置的Geo IP不同,子区域内用于标识终端设备的Geo IP以该子区域的Geo IP作为前缀,剩余的部分作为主机号。例如,若子区域的Geo IP为7级的00111-00010-00-000101-01-10-0011-01-00…00(前5位00111表示编码深度为7层,为了便于描述“-”符号用于区分各个层),区域内终端设备的Geo IP可以为00111-00010-00-000101-01-10-0011-01-xx…xx(x作为主机号不可全为0)。In the embodiment of the present application, the wireless routing device is a data plane programmable device, which can allocate a Geo IP with the Geo IP prefix of the sub-area to the terminal devices in the sub-area. Different from the Geo IP used to identify the geographical location, the Geo IP used to identify the terminal device in the sub-area is prefixed with the Geo IP of the sub-area, and the rest is used as the host number. For example, if the Geo IP of the sub-area is 00111-00010-00-000101-01-10-0011-01-00…00 of level 7 (the first 5 digits 00111 indicate that the coding depth is 7 layers, in order to describe the "-" symbol with To distinguish each layer), the Geo IP of the terminal equipment in the area can be 00111-00010-00-000101-01-10-0011-01-xx...xx (x as the host number cannot be all 0).
图3为本申请实施例提供的一种面向地理区域的通信方法的流程图,如图3所示,该方法应用于接收方设备,可以包括以下步骤:Fig. 3 is a flow chart of a geographical area-oriented communication method provided in the embodiment of the present application. As shown in Fig. 3, the method is applied to the receiver device and may include the following steps:
步骤S31,接收通信数据报文,其中,通信数据报文包括源地理地址以及目的地理地址;Step S31, receiving a communication data message, wherein the communication data message includes a source geographic address and a destination geographic address;
步骤S32,在目的地理地址为第一地理地址的情况下,确定第一地理地址中的第一层数;Step S32, if the destination geographic address is the first geographic address, determine the first layer number in the first geographic address;
步骤S33,获取接收方设备的坐标数据,并将坐标数据按照预设编码规则进行编码得到细分网格编码,并确定细分网格编码的第三层数;Step S33, obtaining the coordinate data of the receiving device, encoding the coordinate data according to the preset encoding rules to obtain the subdivision grid code, and determining the third layer number of the subdivision grid code;
步骤S34,在第一层数大于或等于第三层数的情况下,将第一地址信息的与细分网格编码的前缀信息进行逐层校验,得到校验结果;Step S34, in the case that the number of the first layer is greater than or equal to the number of the third layer, verify the prefix information of the first address information and subdivided grid code layer by layer, and obtain the verification result;
步骤S35,在校验结果用于指示第一地址信息与细分网格编码的前缀信息相同的情况下,确定第一地理地址中是否携带主机标识;Step S35, in the case where the verification result indicates that the first address information is the same as the subdivision grid coded prefix information, determine whether the first geographical address carries the host identifier;
步骤S36,在第一地理地址中不携带主机标识的情况下,处理通信数据报文。Step S36, if the host identifier is not carried in the first geographic address, process the communication data packet.
作为一个示例,当接收方设备收到通信数据报文时,首先从目的地理地址中获取第一地理地址。解析第一地理地址中前5位的“层数标识”,若第一地理地址的层数小于细分网格编码的层数,则表明该报文为“异常报文”并丢弃。As an example, when the receiver device receives the communication data packet, it first acquires the first geographic address from the destination geographic address. Analyzing the first 5 "layer identifiers" in the first geographic address, if the layer number of the first geographic address is less than the layer number of the subdivision grid code, it indicates that the message is an "abnormal message" and discarded.
若第一地理地址的层数大于细分网格编码的层数,则将该第一地理地址和细分网格编码的前缀进行逐层对比,若不同,则丢弃,若相同,则将第一地理地址中的主机号与细分网格编码中的主机号进行对比,若不同,则丢弃,若相同,则接收。If the number of layers of the first geographic address is greater than the number of layers of the subdivision grid code, then the first geographic address and the prefix of the subdivision grid code are compared layer by layer, if they are different, then discarded, if they are the same, then the first The host number in a geographic address is compared with the host number in the subdivision grid code, and if they are different, they are discarded, and if they are the same, they are accepted.
需要说明的是,若第一地理地址的层数大于细分网格编码的层数,则意味着该报文为粒度可调的通信数据报文,该情况下的报文处理方式取决于终端是否开启定位应用,若未开启定位应用,则丢弃通信数据报文,若开启了定位应用,则将获取到的位置坐标通过EMD的编码表转换为一个27层的细分网格编码,并将该细分网格编码与通信数据报文中的目的Geo IP前缀进行逐层对比,直到目的Geo IP前缀中的每一层都对比完毕,若不同,则丢弃,若相同,则查看该目的Geo IP是否含有主机号,若包含主机号,则丢弃,若不包含主机号,则接收该通信数据报文。It should be noted that if the number of layers of the first geographic address is greater than the number of layers of subdivided grid coding, it means that the message is a communication data message with adjustable granularity. In this case, the message processing method depends on the terminal Whether to enable the positioning application. If the positioning application is not enabled, the communication data message will be discarded. If the positioning application is enabled, the obtained position coordinates will be converted into a 27-layer subdivision grid code through the EMD coding table, and the The subdivision grid code is compared layer by layer with the destination Geo IP prefix in the communication data message until each layer in the destination Geo IP prefix is compared. If they are different, discard them. If they are the same, check the destination Geo IP address. Whether the IP contains the host number, if it contains the host number, it will be discarded, if it does not contain the host number, then the communication data packet will be received.
本申请实施例在无线路由设备和接收方设备中分别提供了相应的数据处理方法。无线路由设备可通过解析收到报文中第一地理地址(即目的地理地址),并将第一地理地址与自身的地理地址进行逐层对比,判断该报文是否应当被广播至其覆盖子区域内。而接收方设备同样通过逐层匹配Geo IP的方式判断该报文是否应当被接收。若终端开启了定位应用,则可以支持对子区域内任意粒度的面向地理区域的通信服务,基于定位应用获取的坐标信息可以转换为唯一的27层Geo IP,并将该地理地址与第一地理地址进行匹配,从而决定是否接收该报文。因此,无线路由设备仅负责判断是否应当转发数据报文,而决定是否接收报文在于接收方设备,从而能够实现灵活的对任意粒度地理区域的通信。The embodiment of the present application provides corresponding data processing methods in the wireless router device and the receiver device respectively. The wireless routing device can judge whether the message should be broadcast to its coverage sub-addresses by parsing the first geographical address (ie, the destination geographical address) in the received message, and comparing the first geographical address with its own geographical address layer by layer. within the area. The receiving device also judges whether the message should be received by matching the Geo IP layer by layer. If the positioning application is enabled on the terminal, it can support communication services for geographic areas of any granularity in the sub-area. The coordinate information obtained based on the positioning application can be converted into a unique 27-layer Geo IP, and the geographic address and the first geographic address Addresses are matched to determine whether to accept the message. Therefore, the wireless routing device is only responsible for judging whether the data message should be forwarded, and it is up to the receiver device to decide whether to receive the message, so that flexible communication to geographical areas with arbitrary granularity can be realized.
在本申请实施例中的预设编码规则为EMD编码方法,具体过程如下:The preset encoding rule in the embodiment of the present application is the EMD encoding method, and the specific process is as follows:
参考图4至图8。首先按照经纬度将全球地理区域划分为多个网格,采用二进制编码的方式生成细分网格编码,并将编码与细分网格进行绑定,实现对全球任意地理区域进行标识。细分网格编码其网格粒度由编码层数决定,层数越大,粒度越细。编码主体由前6层编码和6至27层编码两部分组成。前6层总共占21位,其中Refer to Figures 4 to 8. Firstly, the global geographic area is divided into multiple grids according to latitude and longitude, and the subdivision grid code is generated by binary coding, and the code is bound to the subdivision grid to realize the identification of any geographic area in the world. The grid granularity of subdivision grid coding is determined by the number of coding layers, the larger the number of layers, the finer the granularity. The coding body is composed of the first 6 layers of coding and 6 to 27 layers of coding. The first 6 layers occupy a total of 21 positions, of which
第1层编码将全球分为22个地理区域,占用5位; Layer 1 encoding divides the world into 22 geographic regions, occupying 5 bits;
第2层编码将第一层编码除南北极以外的各区域平分为4个子区域,占用2位;The second layer of coding divides the areas of the first layer of coding except for the north and south poles into 4 sub-regions, occupying 2 bits;
第3层将细分后的区域继续为33个子区域,占用6位;The third layer divides the subdivided area into 33 sub-areas, occupying 6 bits;
第4层将区域分为4个子区域,占用2位; Layer 4 divides the area into 4 sub-areas, occupying 2 bits;
第5层将区域分为4个子区域,占用2位; Layer 5 divides the area into 4 sub-areas, occupying 2 bits;
第6层将区域分为9个子区域,占用4位; Layer 6 divides the area into 9 sub-areas, occupying 4 bits;
6至27层部分的每一层都将区域分为4个子区域,每层各占2位,因此,细分网格编码段最长可达63bits。前6层编码采用行序列的编码方式,6层以上利用Hilbert曲线编码进行了空间序列识别。Each layer of the 6th to 27th layers divides the area into 4 sub-areas, and each layer occupies 2 bits. Therefore, the subdivision grid coding segment can reach up to 63 bits at most. The coding of the first 6 layers adopts the coding method of line sequence, and the coding of the above 6 layers uses Hilbert curve coding for space sequence recognition.
通过将细分网格编码结合IPv6地址格式,构造了能够用于网络寻址的具有地理位置语义的网络层标识,即Geo IP。为了便于确定细分网格编码层数,在基础细分网格编码段的开头添加了长度为5位的“层数标识”,因此,全部用于表示“地理区域信息”的Geo IP总共68位,由于IPv6地址共128位,因此,将68位的Geo IP置于IPv6地址的末尾,而前60位以“12AB:0:0:CD3”为标志位进行补齐,如图9所示。By combining subdivision grid coding with IPv6 address format, a network layer identifier with geographic location semantics that can be used for network addressing is constructed, that is, Geo IP. In order to facilitate the determination of the number of subdivision grid coding layers, a 5-bit "layer identification" is added at the beginning of the basic subdivision grid coding segment. Therefore, all Geo IPs used to represent "geographical area information" total 68 Since the IPv6 address has a total of 128 bits, the 68-bit Geo IP is placed at the end of the IPv6 address, and the first 60 bits are filled with "12AB:0:0:CD3" as the flag, as shown in Figure 9 .
基于EMD编码所构造的Geo IP可以在不借助GPS的情况下,从网络层标识地理区域。由于基于EMD的编码方式将全球区域划分为了多个粒度可根据编码层数调整的类矩形区域(南北极除外),因此,按照EMD的编码方式将通信区域划分为多个具有自治能力的“域”,能够直接便于对通信区域的进行管理,域内的结构如图10所示。The Geo IP constructed based on the EMD code can identify the geographical area from the network layer without the help of GPS. Since the EMD-based coding method divides the global area into multiple rectangular-like regions (except for the north and south poles) whose granularity can be adjusted according to the number of coding layers, the communication area is divided into multiple "domains" with autonomous capabilities according to the EMD coding method. ", which can directly facilitate the management of the communication area. The structure of the area is shown in Figure 10.
在本申请实施例中,考虑到实际网络中每个区域的规模范围,由于1至2级Geo IP所绑定的网格区域面积过大,不便于映射的管理,因此,将3至6层Geo IP用于标识每个域的无线路由设备,Geo IP所标识的区域覆盖面积最大约为660×440km 2,最小约为55×37km 2。进一步的,按照EMD划分网格的方式,将每个域划分为多个“子区域”,根据用户/网络管理者对通信区域大小的不同需求,将7至27层Geo IP用于标识每个域下辖的子区域,Geo IP所标识的区域覆盖面积最大约为27.5×18.5km 2,最小约为4×4cm 2。域内每个子区域的无线AP为数据平面可编程设备,作为该接入网的ASR设备,该设备除了具备传统基于IP的通信功能外,还具有与下辖子区域相同的Geo IP,可支持基于Geo IP的寻址。 In the embodiment of this application, considering the scale range of each area in the actual network, since the grid area bound by the 1st to 2nd level Geo IP is too large, it is not easy to manage the mapping. Therefore, the 3rd to 6th floor The Geo IP is used to identify the wireless routing equipment in each domain, and the area covered by the Geo IP is at most about 660×440km 2 , and the smallest is about 55×37km 2 . Furthermore, each domain is divided into multiple "sub-areas" according to the grid division method of EMD, and the 7-27 layer Geo IP is used to identify each The sub-area under the jurisdiction of the domain, the area covered by Geo IP is at most about 27.5×18.5km 2 , and the smallest is about 4×4cm 2 . The wireless AP in each sub-area in the domain is a data plane programmable device. As the ASR device of the access network, in addition to the traditional IP-based communication function, this device also has the same Geo IP as the sub-area under its jurisdiction. Geo IP addressing.
本申请实施例首先采用EMD(empirical mode decomposition,经验模态分解)将全球地理区域进行划分,通过Geo IP为划分后的任意粒度的地理区域进行唯一标识,并采用“域”的网络结构对通信区域进行管理,例如:将3至6级Geo IP分配给域级区域,7至27级Geo IP分配给每个域 内的各个子区域。通过结合EMD的划分方式以及域的网络结构,每个域以及下辖子区域的Geo IP是确定且唯一的,便于通信的发起者选择任意粒度的区域进行通信。The embodiment of the present application first adopts EMD (empirical mode decomposition, empirical mode decomposition) to divide the global geographic area, and uses Geo IP to uniquely identify the geographical area of arbitrary granularity after division, and uses the network structure of "domain" to communicate Regions are managed, for example: 3-6 levels of Geo IP are allocated to domain-level areas, and 7-27 levels of Geo IP are allocated to each sub-region within each domain. By combining the division method of EMD and the network structure of the domain, the Geo IP of each domain and its sub-area is definite and unique, which is convenient for the initiator of communication to select an area of any granularity for communication.
图11为本申请实施例提供的一种面向地理区域的通信系统的框图,该系统可以通过软件、硬件或者两者的结合实现成为电子设备的部分或者全部。如图11所示,该系统包括:Fig. 11 is a block diagram of a geographic region-oriented communication system provided by an embodiment of the present application. The system can be implemented as part or all of electronic equipment through software, hardware or a combination of the two. As shown in Figure 11, the system includes:
服务器集群1,位于第一子区域7的第一无线路由设备4和接收方设备5,以及位于第二子区域6的发送方设备2和第二无线路由设备3;The server cluster 1, the first wireless routing device 4 and the receiver device 5 located in the first sub-area 7, and the sender device 2 and the second wireless routing device 3 located in the second sub-area 6;
发送方设备2,用于确定发送方设备2请求通信的第一子区域7,以及第一子区域7的第一地理地址;根据第一地理地址生成通信请求报文,其中,通信请求报文用于获取第一地理地址对应的第一通信地址,第一通信地址为处理第一子区域7中数据传输的第一无线路由设备4的地址;向第二无线路由设备3发送通信请求报文;The sender device 2 is configured to determine the first sub-area 7 where the sender device 2 requests communication, and the first geographic address of the first sub-area 7; generate a communication request message according to the first geographical address, wherein the communication request message Used to obtain the first communication address corresponding to the first geographical address, the first communication address is the address of the first wireless routing device 4 that handles the data transmission in the first sub-area 7; send a communication request message to the second wireless routing device 3 ;
第二无线路由设备3,用于对通信请求报文进行校验,在通信请求报文校验通过的情况下,向服务器集群发送通信请求报文;The second wireless routing device 3 is configured to verify the communication request message, and send the communication request message to the server cluster when the communication request message is verified to pass;
服务器集群1,用于根据存储的地理地址与通信地址的映射关系,确定第一地理地址对应的第一通信地址,将第一通信地址携带在通信应答报文,并发送至第二无线路由设备;The server cluster 1 is configured to determine the first communication address corresponding to the first geographic address according to the stored mapping relationship between the geographical address and the communication address, carry the first communication address in the communication response message, and send it to the second wireless routing device ;
第二无线路由设备3,用于接收通信应答报文,并将通信应答报文转发至发送方设备;The second wireless routing device 3 is configured to receive the communication response message, and forward the communication response message to the sender device;
发送方设备2,用于接收通信应答报文,确定第二子区域的第二地理地址,根据第一地理地址、第二地理地址以及第一通信地址生成通信数据报文;向第二无线路由设备3发送通信数据报文,以使第二无线路由设备3将通信数据报文转发至第一无线路由设备4,并由第二无线路由设备将通信数据报文广播至接收方设备5。The sender device 2 is configured to receive the communication response message, determine the second geographical address of the second sub-area, and generate a communication data message according to the first geographical address, the second geographical address and the first communication address; The device 3 sends the communication data packet, so that the second wireless routing device 3 forwards the communication data packet to the first wireless routing device 4, and the second wireless routing device broadcasts the communication data packet to the receiver device 5.
本申请实施例将Geo IP作为一种特殊的“域名”,并在服务器集群中设计多级映射关系,以此采用多级映射关系获取通信地址的方式不再需要利用骨干网进行IP查询,从而有效降低了骨干网的网络压力。通过为每个区域设置区域服务器,每个区域内各子区域的Geo IP到其无线路由设备的IP地址的映射被统一维护,提高了查询效率;通过设置根服务器,本地服务器可根据待通信地理区域的Geo IP前缀,获取到所需要查询的域服务器的IP地址,根服务器仅提供查询索引,因此不需要维护过多的映射条目。通过多极映射关系,用户可以快速得到待通信地理区域的Geo IP对应的IP地址,便于在基于IP的网络中实施。In the embodiment of the present application, Geo IP is used as a special "domain name", and a multi-level mapping relationship is designed in the server cluster, so that the method of obtaining the communication address by using the multi-level mapping relationship no longer needs to use the backbone network for IP query, thereby Effectively reduce the network pressure on the backbone network. By setting a regional server for each area, the mapping from the Geo IP of each sub-area in each area to the IP address of its wireless routing device is uniformly maintained, which improves the query efficiency; by setting the root server, the local server can communicate according to the geographical location The Geo IP prefix of the region can obtain the IP address of the domain server to be queried. The root server only provides the query index, so there is no need to maintain too many mapping entries. Through the multi-pole mapping relationship, users can quickly obtain the IP address corresponding to the Geo IP in the geographical area to be communicated, which is convenient for implementation in an IP-based network.
在本申请实施例中,服务器集群1包括:根服务器101,部署在各个区域的区域服务器103以及部署在各个子区域内的本地服务器103;In the embodiment of the present application, the server cluster 1 includes: a root server 101, a regional server 103 deployed in each area, and a local server 103 deployed in each sub-area;
其中,本地服务区103中存储有子区域的地理地址与子区域对应无线路由设备访问过的通信地址与之间第一映射关系;Wherein, the local service area 103 stores the first mapping relationship between the geographical address of the sub-area and the communication address visited by the wireless routing device corresponding to the sub-area;
区域服务器102中存储有区域的地理地址与区域内各个子区域对应无线路由设备的通信地址之间的第二映射关系;The second mapping relationship between the geographical address of the area and the communication address of the wireless routing device corresponding to each sub-area in the area is stored in the area server 102;
根服务器101中存储有各个区域的地理地址与各个区域中无线路由设备的通信地址之间的第三映射关系。The root server 101 stores a third mapping relationship between geographic addresses of each area and communication addresses of wireless routing devices in each area.
在本申请实施例中,本地服务器103,用于接收通信请求报文,在根据第一映射关系,确定不存在第一地理地址对应的第一通信地址的情况下,向区域服务器发送通信请求报文;In this embodiment of the application, the local server 103 is configured to receive the communication request message, and send the communication request message to the regional server when it is determined that there is no first communication address corresponding to the first geographical address according to the first mapping relationship. arts;
区域服务器102,用于接收通信请求报文,在根据第二映射关系,确定存在第一地理地址对应的第一通信地址的情况下,向本地服务器发送第一通信地址;The regional server 102 is configured to receive the communication request message, and send the first communication address to the local server when it is determined that there is a first communication address corresponding to the first geographic address according to the second mapping relationship;
本地服务器103,用于发送第一通信地址发送至第二无线路由设备,并存储第一地理地址与第一通信地址的映射关系。The local server 103 is configured to send the first communication address to the second wireless routing device, and store a mapping relationship between the first geographic address and the first communication address.
在本申请实施例中,区域服务器102,接收通信请求报文,在根据第二映射关系,确定不存在第一地理地址对应的第一通信地址的情况下,向根服务器发送通信请求报文;In the embodiment of the present application, the regional server 102 receives the communication request message, and sends the communication request message to the root server when it is determined that there is no first communication address corresponding to the first geographic address according to the second mapping relationship;
根服务器101,用于接收通信请求报文,在根据第三映射关系,确定存在第一地理地址对应的第一通信地址的情况下,向区域服务器发送第一通信地址;The root server 101 is configured to receive the communication request message, and send the first communication address to the regional server when it is determined that there is a first communication address corresponding to the first geographical address according to the third mapping relationship;
区域服务器102,用于向本地服务器发送第一通信地址,并由本地服务器将第一通信地址发送至第二无线路由设备。The regional server 102 is configured to send the first communication address to the local server, and the local server sends the first communication address to the second wireless routing device.
本申请实施例提供了以下三种实施例的通信方式:The embodiment of this application provides the communication methods of the following three embodiments:
(1)子区域内通信:(1) Communication within the sub-area:
如图12所示,假设区域A被分配了4级Geo IP 00100-00010-00-000101-01-00…00,无线路由设备a的Geo IP为00111-00010-00-000101-01-10-0011-01-00…00(子区域P1为7级网格)。As shown in Figure 12, assume that area A is assigned a 4-level Geo IP 00100-00010-00-000101-01-00...00, and the Geo IP of wireless routing device a is 00111-00010-00-000101-01-10- 0011-01-00...00 (sub-area P1 is a 7-level grid).
若子区域P1内某个移动终端对同处子区域P1内的一具有GeoIP 00111-00010-00-000101-01-10-0011-01-01…11的电脑设备单播发送控制报文时,由于无线路由设备a为数据平面可编程设备,因此可以支持基于目的Geo IP的数据转发,通信过程不涉及查询通信地址。If a mobile terminal in the sub-area P1 sends a control message in unicast to a computer device with GeoIP 00111-00010-00-000101-01-10-0011-01-01...11 in the same sub-area P1, due to wireless Routing device a is a data plane programmable device, so it can support data forwarding based on the destination Geo IP, and the communication process does not involve querying the communication address.
(2)子区域间通信:(2) Communication between sub-regions:
如图12所示,假设无线路由设备b的Geo IP为:00111-00010-00-000101-01-10-0011-10-00…00(子区域P2为7级网络),子区域P2内的所有设备的Geo IP具有相同的前缀,即00111-00010-00-000101-01-10-0011-10-xx…xx。若处于子区域P1中的移动终端请求与处于子区域P2中房间内的所有智能设备进行广播通信,移动终端可发送以无线路由设备b的Geo IP设置为目的地理地址的通信请求报文。由于通信过程发生在不同子区域间,数据无法直接发送至对端。As shown in Figure 12, assume that the Geo IP of wireless routing device b is: 00111-00010-00-000101-01-10-0011-10-00...00 (sub-area P2 is a level 7 network), the sub-area P2 Geo IPs of all devices have the same prefix, 00111-00010-00-000101-01-10-0011-10-xx…xx. If the mobile terminal in the sub-area P1 requests broadcast communication with all the smart devices in the room in the sub-area P2, the mobile terminal can send a communication request message with the Geo IP of the wireless routing device b set as the destination geographic address. Since the communication process occurs between different sub-areas, the data cannot be sent directly to the peer.
因此,子区域P1的移动终端首先需要查询本地服务器S1,若本地服务器S1中存在无线路由设备b的通信地址(即IP地址),则本地服务器S1会向子区域P1内的移动终端发送无线路由设备b的通信地址,若本地服务器S1不存在上述地址,则由本地服务器S1继续向本域内的区域服务器K1发起查询请求,区域服务器K1即可返回所需的IP地址至本地服务器S1,本地服务器S1会缓存查询结果,并将结果进一步发子区域P1内的移动终端。子区域P1内的移动终端根据获取到的IP地址,采用GeoIP+IP的报文封装,将通信数据报文发送至无线路由设备b,再由无线路由设备b通过目的Geo IP,对处于子区域P2中的目标设备进行寻址并通信。Therefore, the mobile terminals in the sub-area P1 first need to query the local server S1. If the communication address (ie IP address) of the wireless routing device b exists in the local server S1, the local server S1 will send the wireless route to the mobile terminals in the sub-area P1. The communication address of device b, if the local server S1 does not have the above address, the local server S1 will continue to initiate a query request to the regional server K1 in the domain, and the regional server K1 can return the required IP address to the local server S1, the local server S1 will cache the query results, and further send the results to the mobile terminals in the sub-area P1. The mobile terminal in the sub-area P1 uses GeoIP+IP message encapsulation according to the obtained IP address, and sends the communication data message to the wireless routing device b, and then the wireless routing device b passes the destination Geo IP to the sub-area Target devices in P2 are addressed and communicate.
(3)域间通信:(3) Inter-domain communication:
如图12所示假设区域B被分配了3级Geo IP 00011-00010-00-000110-00…00,无线路由设备c的Geo IP为01000-00010-00-000110-01-10-0011-10-01-00…00,若处于子区域P1中的交通管制中心需要对子区域P3中处于某路段的车辆进行路线规划并发送管控报文,在该场景下,待通信的区域往往是指定粒度的,假定目的Geo IP设置为01001-00010-00-000110-01-10-0011-10-01-01-00…00(9级Geo,IP),由于通信发生在不同的区域之间,因此,交通管制中心查询本地服务器S1无法查到子区域P3对应无线路由设备c的通信地址,本地服务器S1查询本域的区域服务器K1,如果区域服务器K1中也不存在无线路由设备c的通信地址时,会再向根服务器发起查询,根服务器会返回域B中的区域服务器K2的通信地址,区域A中的本地服务器S1通过该通信地址,进一步查询区域B中的区域服务器,可以得到无线路由设备c的通信地址,区域B中的区域服务器将返回无线路由设备c的通信地址,区域A中的本地服务器S1缓存该通信地址,并将查询到的通信地址发回至子区域P1内的交通管制中心,交通管制中心通过Geo IP+IP的封装方式将报文发送至无线路由设备c,无线路由设备c通过广播的方式,将数据发送至子区域P3的所有车载通信设备。As shown in Figure 12, it is assumed that area B is assigned a 3-level Geo IP 00011-00010-00-000110-00...00, and the Geo IP of wireless routing device c is 01000-00010-00-000110-01-10-0011-10 -01-00...00, if the traffic control center in sub-area P1 needs to plan routes and send control messages for vehicles on a certain road section in sub-area P3, in this scenario, the area to be communicated is often a specified granularity Yes, assuming that the destination Geo IP is set to 01001-00010-00-000110-01-10-0011-10-01-01-00...00 (level 9 Geo, IP), since the communication occurs between different areas, so , the traffic control center queries the local server S1 and cannot find the communication address of the wireless routing device c corresponding to the sub-area P3, and the local server S1 queries the regional server K1 of the domain, if the communication address of the wireless routing device c does not exist in the regional server K1 , will initiate a query to the root server, and the root server will return the communication address of the area server K2 in domain B. The local server S1 in area A will further inquire the area server in area B through this communication address, and the wireless routing device can be obtained The communication address of c, the regional server in area B will return the communication address of wireless routing device c, the local server S1 in area A caches the communication address, and sends the queried communication address back to the traffic control in sub-area P1 Center, the traffic control center sends the message to the wireless routing device c through the encapsulation method of Geo IP+IP, and the wireless routing device c sends the data to all the vehicle communication devices in the sub-region P3 by broadcasting.
图13为本申请实施例提供的一种面向地理区域的通信装置的框图,该装置可以通过软件、硬件或者两者的结合实现成为电子设备的部分或者全部。如图13所示,该装置包括:Fig. 13 is a block diagram of a geographic area-oriented communication device provided by an embodiment of the present application. The device can be implemented as part or all of an electronic device through software, hardware or a combination of the two. As shown in Figure 13, the device includes:
确定模块71,用于确定发送方设备请求通信的第一子区域,以及第一子区域的第一地理地址;A determining module 71, configured to determine a first sub-area where the sender device requests communication, and a first geographic address of the first sub-area;
生成模块72,用于根据第一地理地址生成通信请求报文,其中,通信请求报文用于获取第一地理地址对应的第一通信地址,第一通信地址为处理第一子区域中数据传输的第一无线路由设备的地址;The generating module 72 is configured to generate a communication request message according to the first geographic address, wherein the communication request message is used to obtain a first communication address corresponding to the first geographic address, and the first communication address is used to process data transmission in the first sub-area The address of the first wireless routing device;
查询模块73,用于向服务器集群发送所述通信请求报文,以使所述服务器集群根据存储的地理地址与通信地址的多级映射关系,确定所述第一地理地址对应的目标通信地址,将所述第一通信地址携带在通信应答报文并发送;The query module 73 is configured to send the communication request message to the server cluster, so that the server cluster determines the target communication address corresponding to the first geographic address according to the stored multi-level mapping relationship between the geographic address and the communication address, Carrying the first communication address in the communication response message and sending it;
处理模块74,用于接收所述服务器集群反馈的通信应答报文,并根据所述通信应答报文中携带的第一通信地址与所述第一无线路由设备进行通信,以使所述第一无线路由设备对所述第一子区域内的接收方设备进行广播。A processing module 74, configured to receive a communication response message fed back by the server cluster, and communicate with the first wireless routing device according to the first communication address carried in the communication response message, so that the first The wireless routing device broadcasts to receiver devices in the first sub-area.
图14为本申请实施例提供的一种面向地理区域的通信装置的框图,该装置可以通过软件、硬件或者两者的结合实现成为电子设备的部分或者全部。如图14所示,该装置包括:Fig. 14 is a block diagram of a geographic region-oriented communication device provided by an embodiment of the present application, and the device can be implemented as part or all of an electronic device through software, hardware or a combination of the two. As shown in Figure 14, the device includes:
接收模块81,用于接收通信报文,其中,通信报文包括源地理地址、目的地理地址以及报文类型;The receiving module 81 is configured to receive a communication message, wherein the communication message includes a source geographic address, a destination geographic address, and a message type;
第一获取模块82,用于从目的地理地址中获取第一地理地址,并确定第一地理地址中的第一层数;The first acquiring module 82 is configured to acquire the first geographic address from the destination geographic address, and determine the first layer number in the first geographic address;
第二获取模块83,用于获取无线路由设备中存储的第二地理地址,并确定第二地理地址的第二层数;The second obtaining module 83 is used to obtain the second geographical address stored in the wireless routing device, and determine the second layer number of the second geographical address;
校验模块84,用于在第一层数大于或等于第二层数的情况下,将第一地址信息的与第二地址信息的前缀信息进行校验,得到校验结果;A verification module 84, configured to verify the prefix information of the first address information and the second address information to obtain a verification result when the first layer number is greater than or equal to the second layer number;
执行模块85,用于在校验结果用于指示第一地址信息与第二地址信息的前缀信息相同的情况下,执行报文类型对应的处理操作。The execution module 85 is configured to execute a processing operation corresponding to the packet type when the verification result indicates that the prefix information of the first address information and the second address information are the same.
图15为本申请实施例提供的一种面向地理区域的通信装置的框图,该装置可以通过软件、硬件或者两者的结合实现成为电子设备的部分或者全部。如图15所示,该装置包括:Fig. 15 is a block diagram of a geographic area-oriented communication device provided by an embodiment of the present application. The device can be implemented as part or all of an electronic device through software, hardware or a combination of the two. As shown in Figure 15, the device includes:
接收模块91,用于接收通信数据报文,其中,通信数据报文包括源地理地址以及目的地理地址;The receiving module 91 is configured to receive a communication data message, wherein the communication data message includes a source geographic address and a destination geographic address;
第一获取模块92,用于从目的地理地址中获取第一地理地址,并确定第一地理地址中的第一层数;The first acquiring module 92 is configured to acquire the first geographic address from the destination geographic address, and determine the first layer number in the first geographic address;
第二获取模块93,用于获取接收方设备的坐标数据,并将坐标数据按照预设编码规则进行编码得到细分网格编码,并确定细分网格编码的第三层数;The second acquiring module 93 is configured to acquire the coordinate data of the receiver device, encode the coordinate data according to a preset encoding rule to obtain a subdivided grid code, and determine the third layer number of the subdivided grid code;
校验模块94,用于在第一层数大于或等于第三层数的情况下,将第一地址信息的与细分网格编码的前缀信息进行逐层校验,得到校验结果;A verification module 94, configured to verify layer by layer the first address information and the subdivided grid coded prefix information when the first layer number is greater than or equal to the third layer number, to obtain a verification result;
确定模块95,用于在校验结果用于指示第一地址信息与细分网格编码的前缀信息相同的情况下,确定第一地理地址中是否携带主机标识;A determining module 95, configured to determine whether the first geographic address carries a host identifier when the verification result indicates that the first address information is the same as the subdivided grid coded prefix information;
处理模块96,用于在第一地理地址中不携带主机标识的情况下,处理通信数据报文。The processing module 96 is configured to process the communication data packet when the host identifier is not carried in the first geographical address.
本申请实施例还提供一种电子设备,如图16所示,电子设备可以包括:处理器1501、通信接口1502、存储器1503和通信总线1504,其中,处理器1501,通信接口1502,存储器1503通过通信总线1504完成相互间的通信。An embodiment of the present application also provides an electronic device. As shown in FIG. The communication bus 1504 completes mutual communication.
存储器1503,用于存放计算机程序; Memory 1503, for storing computer programs;
处理器1501,用于执行存储器1503上所存放的计算机程序时,实现上述实施例的步骤。The processor 1501 is configured to implement the steps of the above-mentioned embodiments when executing the computer program stored in the memory 1503 .
上述终端提到的通信总线可以是外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,简称EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the terminal above may be a Peripheral Component Interconnect (PCI for short) bus or an Extended Industry Standard Architecture (EISA for short) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
通信接口用于上述终端与其他设备之间的通信。The communication interface is used for communication between the terminal and other devices.
存储器可以包括随机存取存储器(Random Access Memory,简称RAM),也可以包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include a random access memory (Random Access Memory, RAM for short), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one storage device located far away from the aforementioned processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor can be a general-purpose processor, including a central processing unit (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc.; it can also be a digital signal processor (Digital Signal Processing, referred to as DSP) , Application Specific Integrated Circuit (ASIC for short), Field Programmable Gate Array (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
在本申请提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述实施例中任一所述的面向地理区域的通信方法。In yet another embodiment provided by the present application, a computer-readable storage medium is also provided, and instructions are stored in the computer-readable storage medium, and when it is run on a computer, the computer is made to execute any one of the above-mentioned embodiments. Said geographical area-oriented communication method.
在本申请提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一所述的面向地理区域的通信方法。In yet another embodiment provided by the present application, a computer program product including instructions is also provided, which, when run on a computer, causes the computer to execute the geographic area-oriented communication method described in any one of the above embodiments.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装 置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk)等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a Solid State Disk).
以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application are included within the protection scope of this application.
以上所述仅是本申请的具体实施方式,使本领域技术人员能够理解或实现本申请。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所申请的原理和新颖特点相一致的最宽的范围。The above descriptions are only specific implementation manners of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the present application will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims (16)

  1. 一种面向地理区域的通信方法,其特征在于,应用于发送方设备,所述方法包括:A geographical area-oriented communication method, characterized in that it is applied to a sender device, the method comprising:
    确定所述发送方设备请求通信的第一子区域,以及所述第一子区域的第一地理地址;determining a first subregion in which the sender device requests communication, and a first geographic address of the first subregion;
    根据所述第一地理地址生成通信请求报文,其中,所述通信请求报文用于获取所述第一地理地址对应的第一通信地址,所述第一通信地址为处理所述第一子区域中数据传输的第一无线路由设备的地址;Generate a communication request message according to the first geographic address, where the communication request message is used to obtain a first communication address corresponding to the first geographic address, and the first communication address is used to process the first sub- the address of the first wireless routing device for data transmission in the area;
    向服务器集群发送所述通信请求报文,以使所述服务器集群根据存储的地理地址与通信地址的多级映射关系,确定所述第一地理地址对应的目标通信地址,将所述第一通信地址携带在通信应答报文并发送;sending the communication request message to the server cluster, so that the server cluster determines the target communication address corresponding to the first geographical address according to the stored multi-level mapping relationship between the geographical address and the communication address, and transmits the first communication The address is carried in the communication response message and sent;
    接收所述服务器集群反馈的通信应答报文,并根据所述通信应答报文中携带的第一通信地址与所述第一无线路由设备进行通信,以使所述第一无线路由设备对所述第一子区域内的接收方设备进行广播。receiving the communication response message fed back by the server cluster, and communicating with the first wireless routing device according to the first communication address carried in the communication response message, so that the first wireless routing device can respond to the Receiver devices within the first sub-area broadcast.
  2. 根据权利要求1所述的方法,其特征在于,所述向服务器集群发送所述通信请求报文,包括:The method according to claim 1, wherein the sending the communication request message to the server cluster comprises:
    确定所述发送方设备所在的第二子区域,以及用于处理所述第二子区域中数据传输的第二无线路由设备;determining a second sub-area where the sender device is located, and a second wireless routing device for processing data transmission in the second sub-area;
    向所述第二无线路由设备发送所述通信请求报文,以使所述第二无线理由设备将所述通信请求报文转发至所述服务器集群。Sending the communication request packet to the second wireless routing device, so that the second wireless routing device forwards the communication request packet to the server cluster.
  3. 根据权利要求2所述的方法,其特征在于,所述接收所述服务器集群反馈的通信应答报文,并根据所述通信应答报文中携带的第一通信地址与所述第一无线路由设备进行通信,包括:The method according to claim 2, characterized in that receiving the communication response message fed back by the server cluster, and according to the first communication address carried in the communication response message and the first wireless routing device To communicate, including:
    确定所述第二子区域的第二地理地址;determining a second geographic address of said second sub-area;
    根据所述第一地理地址、第二地理地址以及第一通信地址生成通信数据报文;generating a communication data packet according to the first geographic address, the second geographic address, and the first communication address;
    向所述第二无线路由设备发送所述通信数据报文,以使所述第二无线路由设备将所述通信数据报文转发至所述第一无线路由设备,并由所述第二无线路由设备将所述通信数据报文广播至接收方设备。sending the communication data packet to the second wireless routing device, so that the second wireless routing device forwards the communication data packet to the first wireless routing device, and the second wireless routing device The device broadcasts the communication data packet to the receiver device.
  4. 一种面向地理区域的通信方法,其特征在于,应用于无线路由设备,所述方法包括:A geographical area-oriented communication method is characterized in that it is applied to a wireless routing device, and the method includes:
    接收通信报文,其中,所述通信报文包括源地理地址、目的地理地址以及报文类型;receiving a communication message, wherein the communication message includes a source geographic address, a destination geographic address, and a message type;
    在所述目的地理地址为第一地理地址的情况下,确定所述第一地理地址中的第一层数;If the destination geographic address is a first geographic address, determine a first layer number in the first geographic address;
    获取所述无线路由设备中存储的第二地理地址,并确定所述第二地理地址的第二层数;Obtaining a second geographic address stored in the wireless routing device, and determining a second layer number of the second geographic address;
    在所述第一层数大于或等于第二层数的情况下,将所述第一地址信息的与所述第二地址信息的前缀信息进行逐层校验,得到校验结果;When the first number of layers is greater than or equal to the second number of layers, verifying the prefix information of the first address information and the second address information layer by layer to obtain a verification result;
    在所述校验结果用于指示所述第一地址信息与所述第二地址信息的前缀信息相同的情况下,执行所述报文类型对应的处理操作。In a case where the verification result indicates that the first address information is the same as the prefix information of the second address information, a processing operation corresponding to the packet type is performed.
  5. 根据权利要求4所述的方法,其特征在于,在所述报文类型用于指示所述通信报文为通信应答报文的情况下,所述执行所述报文类型对应的处理操作,包括:The method according to claim 4, wherein when the message type is used to indicate that the communication message is a communication response message, the execution of the processing operation corresponding to the message type includes :
    发送所述通信应答报文至所述通信应答报文中携带的目的地理地址对应的发送方设备。Sending the communication response message to the sender device corresponding to the destination geographic address carried in the communication response message.
  6. 根据权利要求4所述的方法,其特征在于,在所述报文类型用于指示所述通信报文为通信数据报文的情况下,所述执行所述报文类型对应的处理操作,包括:The method according to claim 4, wherein when the message type is used to indicate that the communication message is a communication data message, the execution of the processing operation corresponding to the message type includes :
    广播所述通信数据报文至所述无线路由设备对应子区域中的接收方设备。broadcasting the communication data packet to receiver devices in the sub-area corresponding to the wireless routing device.
  7. 一种面向地理区域的通信方法,其特征在于,应用于接收方设备,所述方法包括:A geographical area-oriented communication method, characterized in that it is applied to a receiver device, the method comprising:
    接收通信数据报文,其中,所述通信数据报文包括源地理地址以及目的地理地址;receiving a communication data message, wherein the communication data message includes a source geographic address and a destination geographic address;
    在所述目的地理地址为第一地理地址的情况下,确定所述第一地理地址中的第一层数;If the destination geographic address is a first geographic address, determine a first layer number in the first geographic address;
    获取所述接收方设备的坐标数据,并将所述坐标数据按照预设编码规则进行编码得到细分网格编码,并确定所述细分网格编码的第三层数;Acquiring the coordinate data of the receiver device, encoding the coordinate data according to a preset encoding rule to obtain a subdivision grid code, and determining the third layer number of the subdivision grid code;
    在所述第一层数大于或等于所述第三层数的情况下,将所述第一地址信息的与所述细分网格编码的前缀信息进行逐层校验,得到校验结果;When the number of the first layer is greater than or equal to the number of the third layer, performing layer-by-layer verification of the first address information and the prefix information coded with the subdivision grid to obtain a verification result;
    在所述校验结果用于指示所述第一地址信息与所述细分网格编码的前缀信息相同的情况下,确定所述第一地理地址中是否携带主机标识;In the case where the verification result is used to indicate that the first address information is the same as the subdivided grid coded prefix information, determine whether the first geographic address carries a host identifier;
    在所述第一地理地址中不携带所述主机标识的情况下,处理所述通信数据报文。If the first geographical address does not carry the host identifier, process the communication data packet.
  8. 一种面向地理区域的通信系统,其特征在于,包括:服务器集群,位于第一子区域的第一无线路由设备和接收方设备,以及位于第二子区域的发送方设备和第二无线路由设备;A geographical area-oriented communication system, characterized by comprising: a server cluster, a first wireless routing device and a receiver device located in a first sub-area, and a sender device and a second wireless routing device located in a second sub-area ;
    所述发送方设备,用于确定所述发送方设备请求通信的第一子区域,以及所述第一子区域的第一地理地址;根据所述第一地理地址生成通信请求报文,其中,所述通信请求报文用于获取所述第一地理地址对应的第一通信地址,所述第一通信地址为处理所述第一子区域中数据传输的第一无线路由设备的地址;向所述第二无线路由设备发送所述通信请求报文;The sender device is configured to determine a first sub-area where the sender device requests communication, and a first geographical address of the first sub-area; generate a communication request message according to the first geographical address, wherein, The communication request message is used to obtain a first communication address corresponding to the first geographical address, and the first communication address is an address of a first wireless routing device that handles data transmission in the first sub-area; The second wireless routing device sends the communication request message;
    所述第二无线路由设备,用于对所述通信请求报文进行校验,在所述通信请求报文校验通过的情况下,向所述服务器集群发送所述通信请求报文;The second wireless routing device is configured to verify the communication request message, and send the communication request message to the server cluster if the communication request message passes the verification;
    所述服务器集群,用于根据存储的地理地址与通信地址的映射关系,确定所述第一地理地址对应的第一通信地址,将所述第一通信地址携带在通信应答报文,并发送至所述第二无线路由设备;The server cluster is configured to determine the first communication address corresponding to the first geographic address according to the stored mapping relationship between the geographic address and the communication address, carry the first communication address in the communication response message, and send it to the second wireless routing device;
    所述第二无线路由设备,用于接收所述通信应答报文,并将所述通信应答报文转发至所述发送方设备;The second wireless routing device is configured to receive the communication response message, and forward the communication response message to the sender device;
    所述发送方设备,用于接收所述通信应答报文,确定所述第二子区域的第二地理地址,根据所述第一地理地址、第二地理地址以及第一通信地址生成通信数据报文;向所述第二无线路由设备发送所述通信数据报文,以使所述第二无线路由设备将所述通信数据报文转发至所述第一无线路由设备,并由所述第二无线路由设备将所述通信数据报文广播至所述接收方设备。The sender device is configured to receive the communication response message, determine the second geographic address of the second sub-area, and generate a communication datagram according to the first geographic address, the second geographic address, and the first communication address text; send the communication data packet to the second wireless routing device, so that the second wireless routing device forwards the communication data packet to the first wireless routing device, and the second wireless routing device forwards the communication data packet to the first wireless routing device The wireless routing device broadcasts the communication data packet to the receiver device.
  9. 根据权利要求8所述的系统,其特征在于,所述服务器集群包括:根服务器,部署在各个区域的区域服务器以及部署在各个子区域内的本地服务器;The system according to claim 8, wherein the server cluster comprises: a root server, regional servers deployed in each area, and local servers deployed in each sub-area;
    其中,所述本地服务区中存储有子区域的地理地址与子区域对应无线路由设备访问过的通信地址与之间第一映射关系;Wherein, the first mapping relationship between the geographical address of the sub-area and the communication address visited by the wireless routing device corresponding to the sub-area is stored in the local service area;
    所述区域服务器中存储有区域的地理地址与所述区域内各个子区域对应无线路由设备的通信地址之间的第二映射关系;The second mapping relationship between the geographical address of the area and the communication address of the wireless routing device corresponding to each sub-area in the area is stored in the area server;
    所述根服务器,所述根服务器中存储有各个区域的地理地址与各个区域中无线路由设备的通信地址之间的第三映射关系。The root server stores a third mapping relationship between geographic addresses of each area and communication addresses of wireless routing devices in each area.
  10. 根据权利要求9所述的系统,其特征在于,所述本地服务器,用于接收所述通信请求报文,在根据所述第一映射关系,确定不存在所述第一地理地址对应的第一通信地址的情况下,向所述区域服务器发送所述通信请求报文;The system according to claim 9, wherein the local server is configured to receive the communication request message, and determine that there is no first geographical address corresponding to the first geographical address according to the first mapping relationship. In the case of a communication address, sending the communication request message to the area server;
    所述区域服务器,用于接收所述通信请求报文,在根据所述第二映射关系,确定存在所述第一地理地址对应的第一通信地址的情况下,向所述本地服务器发送所述第一通信地址;The regional server is configured to receive the communication request message, and send the communication request message to the local server when it is determined that there is a first communication address corresponding to the first geographic address according to the second mapping relationship. the first mailing address;
    所述本地服务器,用于发送所述第一通信地址发送至所述第二无线路由设备,并存储所述第一地理地址与第一通信地址的映射关系。The local server is configured to send the first communication address to the second wireless routing device, and store a mapping relationship between the first geographical address and the first communication address.
  11. 根据权利要求10所述的系统,其特征在于,所述区域服务器,接收所述通信请求报文,在根据所述第二映射关系,确定不存在所述第一地理地址对应的第一通信地址的情况下,向所述根服务器发送所述通信请求报文;The system according to claim 10, wherein the area server, after receiving the communication request message, determines that there is no first communication address corresponding to the first geographical address according to the second mapping relationship In the case of , sending the communication request message to the root server;
    所述根服务器,用于接收所述通信请求报文,在根据所述第三映射关系,确定存在所述第一地理地址对应的第一通信地址的情况下,向所述区域服务器发送所述第一通信地址;The root server is configured to receive the communication request message, and when it is determined according to the third mapping relationship that there is a first communication address corresponding to the first geographic address, send the communication request message to the area server. the first mailing address;
    所述区域服务器,用于向所述本地服务器发送所述第一通信地址,并由所述本地服务器将所述第一通信地址发送至所述第二无线路由设备。The regional server is configured to send the first communication address to the local server, and the local server sends the first communication address to the second wireless routing device.
  12. 一种通信请求处理装置,其特征在于,包括:A communication request processing device, characterized in that it includes:
    确定模块,用于确定发送方设备请求通信的第一子区域,以及所述第一子区域的第一地理地址;A determining module, configured to determine a first sub-area where the sender device requests communication, and a first geographic address of the first sub-area;
    生成模块,用于根据所述第一地理地址生成通信请求报文,其中,所述通信请求报文用于获取所述第一地理地址对应的第一通信地址,所述第一通信地址为处理所述第一子区域中数据传输的第一无线路由设备的地址;A generating module, configured to generate a communication request message according to the first geographical address, wherein the communication request message is used to obtain a first communication address corresponding to the first geographical address, and the first communication address is a processing the address of the first wireless routing device for data transmission in the first sub-area;
    查询模块,用于向服务器集群发送所述通信请求报文,以使所述服务器集群根据存储的地理地址与通信地址的多级映射关系,确定所述第一地理地址对应的目标通信地址,将所述第一通信地址携带在通信应答报文并发送;A query module, configured to send the communication request message to the server cluster, so that the server cluster determines the target communication address corresponding to the first geographic address according to the stored multi-level mapping relationship between the geographic address and the communication address, and sends the The first communication address is carried in the communication response message and sent;
    处理模块,用于接收所述服务器集群反馈的通信应答报文,并根据所述通信应答报文中携带的 第一通信地址与所述第一无线路由设备进行通信,以使所述第一无线路由设备对所述第一子区域内的接收方设备进行广播。A processing module, configured to receive a communication response message fed back by the server cluster, and communicate with the first wireless routing device according to the first communication address carried in the communication response message, so that the first wireless routing device The routing device broadcasts to receiver devices in the first sub-area.
  13. 一种通信请求处理装置,其特征在于,包括:A communication request processing device, characterized in that it includes:
    接收模块,用于接收通信报文,其中,所述通信报文包括源地理地址、目的地理地址以及报文类型;A receiving module, configured to receive a communication message, wherein the communication message includes a source geographic address, a destination geographic address, and a message type;
    第一获取模块,用于在所述目的地理地址为第一地理地址的情况下,确定所述第一地理地址中的第一层数;A first acquiring module, configured to determine the first layer number in the first geographic address when the destination geographic address is the first geographic address;
    第二获取模块,用于获取无线路由设备中存储的第二地理地址,并确定所述第二地理地址的第二层数;A second acquiring module, configured to acquire a second geographic address stored in the wireless routing device, and determine a second layer number of the second geographic address;
    校验模块,用于在所述第一层数大于或等于第二层数的情况下,将所述第一地址信息的与所述第二地址信息的前缀信息进行校验,得到校验结果;A verification module, configured to verify the prefix information of the first address information and the second address information when the first layer number is greater than or equal to the second layer number, and obtain a verification result ;
    执行模块,用于在所述校验结果用于指示所述第一地址信息与所述第二地址信息的前缀信息相同的情况下,执行所述报文类型对应的处理操作。An execution module, configured to execute a processing operation corresponding to the packet type when the verification result indicates that the prefix information of the first address information is the same as that of the second address information.
  14. 一种通信请求处理装置,其特征在于,包括:A communication request processing device, characterized in that it includes:
    接收模块,用于接收通信数据报文,其中,所述通信数据报文包括源地理地址以及目的地理地址;A receiving module, configured to receive a communication data message, wherein the communication data message includes a source geographic address and a destination geographic address;
    第一获取模块,用于在所述目的地理地址为第一地理地址的情况下,确定所述第一地理地址中的第一层数;A first acquiring module, configured to determine the first layer number in the first geographic address when the destination geographic address is the first geographic address;
    第二获取模块,用于获取所述接收方设备的坐标数据,并将所述坐标数据按照预设编码规则进行编码得到细分网格编码,并确定所述细分网格编码的第三层数;The second acquisition module is configured to acquire the coordinate data of the receiver device, encode the coordinate data according to a preset encoding rule to obtain a subdivision grid code, and determine the third layer of the subdivision grid code number;
    校验模块,用于在所述第一层数大于或等于所述第三层数的情况下,将所述第一地址信息的与所述细分网格编码的前缀信息进行逐层校验,得到校验结果;A verification module, configured to perform layer-by-layer verification of the prefix information encoded with the subdivision grid of the first address information when the first layer number is greater than or equal to the third layer number , get the verification result;
    确定模块,用于在所述校验结果用于指示所述第一地址信息与所述细分网格编码的前缀信息相同的情况下,确定所述第一地理地址中是否携带主机标识;A determining module, configured to determine whether the first geographic address carries a host identifier when the verification result indicates that the first address information is the same as the subdivided grid coded prefix information;
    处理模块,用于在所述第一地理地址中不携带所述主机标识的情况下,处理所述通信数据报文。A processing module, configured to process the communication data packet when the host identifier is not carried in the first geographical address.
  15. 一种存储介质,其特征在于,所述存储介质包括存储的程序,其中,所述程序运行时执行上述权利要求1至7中任一项所述的方法步骤。A storage medium, characterized in that the storage medium includes a stored program, wherein the method steps described in any one of claims 1 to 7 are executed when the program is running.
  16. 一种电子设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;其中:An electronic device is characterized in that it includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete mutual communication through the communication bus; wherein:
    存储器,用于存放计算机程序;memory for storing computer programs;
    处理器,用于通过运行存储器上所存放的程序来执行权利要求1至7中任一项所述的方法步骤。A processor configured to execute the method steps of any one of claims 1 to 7 by running a program stored in the memory.
PCT/CN2021/105196 2021-06-16 2021-07-08 Geographic area-oriented communication method, apparatus and system WO2022262024A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110663435.4A CN113613196A (en) 2021-06-16 2021-06-16 Communication method, device and system for geographic area
CN202110663435.4 2021-06-16

Publications (1)

Publication Number Publication Date
WO2022262024A1 true WO2022262024A1 (en) 2022-12-22

Family

ID=78336542

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/105196 WO2022262024A1 (en) 2021-06-16 2021-07-08 Geographic area-oriented communication method, apparatus and system

Country Status (2)

Country Link
CN (1) CN113613196A (en)
WO (1) WO2022262024A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115460169A (en) * 2022-09-06 2022-12-09 中国电子信息产业集团有限公司第六研究所 Domain name resolution method, system, electronic device and computer readable storage medium
CN115914170A (en) * 2022-09-30 2023-04-04 哈尔滨工业大学 Network routing addressing method based on geographic grid coding

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754681A (en) * 2013-12-30 2015-07-01 北京大唐高鸿数据网络技术有限公司 Vehicle-mounted short-distance communication network based geographic position routing method
CN106413019A (en) * 2015-07-31 2017-02-15 华为技术有限公司 Internet of vehicles (IOV) data transmission method and first forwarding device
CN107276902A (en) * 2017-06-12 2017-10-20 北京邮电大学 The car networking route addressing method that geographical position is combined with IP address
CN110198516A (en) * 2018-02-27 2019-09-03 华为技术有限公司 The method for building up and device of network connection
US20200336870A1 (en) * 2017-06-25 2020-10-22 Lg Electronics Inc. V2x communication device and geo-networking transmission method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001058111A1 (en) * 2000-01-31 2001-08-09 Nokia Corporation Method and system for resolving between geographic information and network addresses in a wide area network, preferably in the internet
CN103139325B (en) * 2013-03-01 2015-05-27 北京大学 Network address design method and data resource scheduling method based on geographic SOT (GeoSOT) subdivision codes
CN106060180B (en) * 2016-08-24 2019-06-18 电子科技大学 A kind of addressing method based on geographical location and application message for IPv6

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754681A (en) * 2013-12-30 2015-07-01 北京大唐高鸿数据网络技术有限公司 Vehicle-mounted short-distance communication network based geographic position routing method
CN106413019A (en) * 2015-07-31 2017-02-15 华为技术有限公司 Internet of vehicles (IOV) data transmission method and first forwarding device
CN107276902A (en) * 2017-06-12 2017-10-20 北京邮电大学 The car networking route addressing method that geographical position is combined with IP address
US20200336870A1 (en) * 2017-06-25 2020-10-22 Lg Electronics Inc. V2x communication device and geo-networking transmission method
CN110198516A (en) * 2018-02-27 2019-09-03 华为技术有限公司 The method for building up and device of network connection

Also Published As

Publication number Publication date
CN113613196A (en) 2021-11-05

Similar Documents

Publication Publication Date Title
US10044815B2 (en) Location-based domain name system service discovery
WO2022262024A1 (en) Geographic area-oriented communication method, apparatus and system
WO2021057889A1 (en) Data processing method and apparatus, electronic device, and storage medium
JP5150769B2 (en) Updating routing information using request routing and client location information
US10530659B2 (en) Identifier-based resolution of identities
US20130238782A1 (en) Method and apparatus for identifying an application associated with an ip flow using dns data
CN113497817B (en) Traffic scheduling method and device, edge node of CDN (content delivery network) and server
CN109803029B (en) Data processing method, device and equipment
US8762519B2 (en) System and method for providing location services for multiple access networks from a single location server
CN105453488A (en) Methods and systems for processing a DNS request
CN104378452A (en) Method, device and system for domain name resolution
CN109729183B (en) Request processing method, device, equipment and storage medium
CN114902634A (en) Apparatus and method for providing information of application server in mobile communication system
CN110049503B (en) Method and equipment for acquiring data
KR20200130043A (en) Method and apparatus for managing an identifier of a terminal in edge computing service
JP6074829B1 (en) Program, apparatus and method for determining IP address based on location information
CN111866201B (en) IPv6 multicast address generation method and device
CN108401040B (en) Content receiving method, content sending method, device and system for NDN
CN113556413A (en) Message processing method and device
WO2015085573A1 (en) Method and device for communication using white spectrum
US11196666B2 (en) Receiver directed anonymization of identifier flows in identity enabled networks
Hou et al. Enabling granularity-customizable geocast in network layer using P4-based software defined network
CN112055391B (en) Communication method, device and system applied to satellite network
US20160330169A1 (en) Base station for ip communications with mobile terminal, and method for acquiring ip of base station
CN110995827B (en) Communication processing method and device, computer readable medium and electronic equipment

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: 21945606

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE