Search discovery model based on multicast
By using a multicast-based search discovery model in the LAN, the occupancy inquiry between service units and the pairing of customer units through the public multicast module is solved, and the efficiency and bandwidth of network data interaction are improved. Utilization.
Patent Information
- Application Number
- CN202411789887.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-01-07
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the LAN environment, service multicast addresses are prone to conflict, resulting in mutual interference between various service units and affecting service interaction.
A multicast-based search and discovery model is designed to realize the occupancy inquiry between service units and the pairing of customer units through the public multicast module, avoid address conflicts, and set up a multicast communication network in the local area network to improve bandwidth utilization.
It effectively avoids interference caused by service multicast address conflict, improves the efficiency and bandwidth utilization of network data interaction, and ensures the private network data interaction between multiple service units and client units.
Smart Images

Figure CN119276645A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a search and discovery model based on multicast. Background Art
[0002] Many application systems in a LAN environment have multiple microservice devices and multiple client devices. Each client needs to search and connect to its associated microservice device, and after pairing, complete the business interaction under independent multicast. If the business multicast address conflicts, it is easy to cause mutual interference between business units.
[0003] Based on this, the present invention designs a multicast-based search and discovery model to solve the above problems. Summary of the invention
[0004] In view of the above-mentioned shortcomings of the prior art, the present invention provides a search and discovery model based on multicast.
[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions: A multicast-based search and discovery model includes multiple business units, multiple client units, and a local area network; The business unit generates a customer identification code of the customer unit paired with it; The local area network communication connection is provided with a public multicast creation module for public multicast creation for communication between multiple business units and multiple client units; The service unit is used to create a service multicast; The public multicast is used for querying network packets between multiple service units to inquire whether the service multicast is occupied; When a service multicast is occupied by a service unit, it replies to the public multicast with a reply network packet indicating that the service multicast is occupied; When the service multicast is not occupied, the service unit that creates the service multicast sends a joining invitation network packet that records the service multicast address and the client identification code to the public multicast; The public multicast is also used for the client unit to receive a joining invitation network packet and identify whether the client identification code in the joining invitation network packet is paired with it, and when paired, the service unit searches for the service multicast address in the joining invitation network packet; The client unit chooses whether to interact with the user unit for private network data via service multicast.
[0006] Furthermore, the service unit includes a service server, an identity creation module, a service multicast address generation module, a channel occupancy processing module, a service multicast creation module and a communication module; The service server is connected to the identity creation module, the service multicast address generation module, the channel occupancy processing module, the service multicast creation module, and the communication module; The channel occupancy processing module is connected in communication with the service multicast address generation module, and the service multicast address generation module is connected in communication with the service multicast creation module; The service multicast creation module and the communication module are both connected to the local area network communication; The service multicast creation module is used to create a service multicast set on the local area network; The service multicast address generation module is used to generate a service multicast address; The identity creation module is used to create a customer identification code.
[0007] Furthermore, the service server is used to generate a joining invitation network packet recording the service multicast address and the client identification code; The service server is further used to generate an inquiry network packet containing a service multicast address and inquiring whether the address is occupied, and to generate a reply network packet containing a service multicast address and inquiring whether the address is occupied.
[0008] Furthermore, the query network packet is used when the service multicast creation module generates a service multicast, and the communication module sends it to the public multicast once at an interval of ms; The communication module 1 is used for the service server to send and receive network packets to the public multicast and service multicast set on the local area network; The channel occupancy processing module is used for processing and judging the reply network packets.
[0009] Furthermore, the channel occupation processing module compares the service multicast address in the received reply network packet with the service multicast address generated by the service multicast address generation module to see whether they are the same; If they are the same, the channel occupancy processing module sends a service multicast occupancy signal to the service server, and the service server sends a service multicast generation signal to the service multicast creation module; If they are not the same, the channel occupation processing module sends a service multicast available signal to the service server, and the service server sends a joining invitation network packet sending instruction to the communication module.
[0010] Furthermore, the client unit includes a client device, a communication module 2 and a channel search module; The client device is connected to the communication module 2 and the channel search module, and the communication module 2 is connected to the local area network.
[0011] Furthermore, the communication module 2 is used for the client device to send and receive network packets to the public multicast and service multicast set up on the local area network; The client device is used to identify whether the client identification code in the received joining invitation network packet matches; When a match occurs, the client device reads the service multicast address in the joining invitation network packet, and searches for and joins the service multicast through a channel search module.
[0012] Furthermore, the channel search module is also used to select whether to join the service multicast.
[0013] Furthermore, in step one, multiple service servers and client devices join a common multicast; Step 2: randomly generate a service multicast through a service multicast creation module and generate a service multicast address through a service multicast address generation module; Step 3: The service server generates a query network packet and sends it to the public multicast through the communication module once every ms. When the communication module 1 does not receive a reply network packet after the inquiry network packet is sent more than times, the service server determines that the service multicast is not occupied, and the communication module 1 sends a joining invitation network packet to the public multicast; When the communication module 1 receives the reply network packet, the communication module 1 sends the reply network packet to the business server, and the business server sends it to the channel occupation processing module; Step 4: the channel occupancy processing module determines whether the service multicast address in the reply network packet is the same as the service multicast address generated by the service multicast address generation module; If they are the same, the channel occupation processing module determines that the service multicast is occupied, and the channel occupation processing module sends a multicast reset instruction to the service server. The service server sends a multicast reset instruction to the service multicast creation module. The service multicast creation module deletes the service multicast and generates another service multicast, and returns to step three. If they are not the same, the service server determines that the service multicast is not occupied, and the communication module sends a joining invitation network packet to the public multicast; Step 5, when the communication module 1 receives the inquiry network packet, the communication module 1 sends the inquiry network packet to the business server, and the business server sends it to the channel occupancy processing module; Step 6, the channel occupancy processing module compares whether the service multicast address in the query network packet is the same as the service multicast address used by the communication module 1; If they are the same, the business server generates a reply network packet and sends it to the communication module 1, and the communication module 1 sends it to the public multicast; If they are not the same, return to step 5.
[0014] Furthermore, in step seven, the communication module 2 receives a join invitation network packet on the public multicast and sends it to the client device; Step 8, the client device determines whether the client identification code recorded in the invitation network packet matches itself; If there is a match, the client device extracts the service multicast address in the joining invitation network packet and searches through the channel search module.
[0015] Compared with the prior art, the present invention has the following beneficial effects: when the present invention is used, all client units and service units join the same public multicast, and service units perform occupancy inquiries on the service multicasts generated by themselves, thereby avoiding service interference caused by service multicast address conflicts.
[0016] When the present invention is used, the client unit can receive a joining invitation network packet matching with it in the public multicast, and can search and join the service multicast address, thereby performing private network data interaction on the multicast network.
[0017] When the present invention is used, a multicast communication network is set up in a local area network, and network packets can be sent to multiple receivers at the same time without sending a separate piece of data to each receiver, thereby improving the utilization rate of bandwidth. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 A frame of a multicast-based search and discovery model of the present invention Figure 1 ; Figure 2 A frame of a multicast-based search and discovery model of the present invention Figure 2 ; Figure 3 A frame of a multicast-based search and discovery model of the present invention Figure 3 .
[0020] The numbers in the figure represent: 1. Business server 2. Identity creation module 3. Business multicast address generation module 4. Channel occupancy processing module 5. Business multicast creation module 6. Communication module one 7. Local area network 8. Public multicast creation module 9. Client equipment 10. Communication module two 11. Channel search module. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0022] Embodiment 1: In some embodiments, please refer to the drawings of the specification Figure 1-Figure 3 , a search and discovery model based on multicast, including multiple business units, multiple client units and local area network 7; The business unit generates a customer identification code of the customer unit paired with it; The local area network 7 is connected to a public multicast creation module 8 for creating public multicasts for multiple business units and multiple customer units to communicate; The service unit is used to create service multicast; Public multicast is used for querying network packets between multiple service units to inquire whether the service multicast is occupied; When a service multicast is occupied by a service unit, it replies to the public multicast with a reply network packet indicating that the service multicast is occupied; When the service multicast is not occupied, the service unit that creates the service multicast sends a joining invitation network packet that records the service multicast address and the client identification code to the public multicast; The public multicast is also used for the client unit to receive the joining invitation network packet and identify whether the client identification code in the joining invitation network packet is paired with it, and when paired, the service unit searches for the service multicast address in the joining invitation network packet; The client unit chooses whether to interact with the user unit for private network data via service multicast.
[0023] When the present invention is used, all client units and service units join the same public multicast, and the service units perform occupation inquiries on the service multicast generated by themselves, thereby avoiding service interference caused by service multicast address conflicts.
[0024] When the present invention is used, the client unit can receive a joining invitation network packet matching with it in the public multicast, and can search and join the service multicast address, thereby performing private network data interaction on the multicast network.
[0025] When the present invention is used, a multicast communication network is set up in the local area network 7, and network packets can be sent to multiple receivers at the same time without sending a separate piece of data to each receiver; thereby improving the utilization rate of bandwidth.
[0026] Embodiment 2: In some embodiments, Figure 1-Figure 3 As shown, as a preferred embodiment of the present invention, the service unit includes a service server 1, an identity creation module 2, a service multicast address generation module 3, a channel occupancy processing module 4, a service multicast creation module 5 and a communication module 6; The business server 1 is connected to the identity creation module 2, the business multicast address generation module 3, the channel occupancy processing module 4, the business multicast creation module 5, and the communication module 6; The channel occupancy processing module 4 is connected to the service multicast address generation module 3, and the service multicast address generation module 3 is connected to the service multicast creation module 5; The service multicast creation module 5 and the communication module 6 are both connected to the local area network 7 for communication; The service multicast creation module 5 is used to create a service multicast set on the local area network 7; The service multicast address generation module 3 is used to generate the service multicast address; The identity creation module 2 is used to create a customer identification code; The service server 1 is used to generate a joining invitation network packet recording the service multicast address and the client identification code; The service server 1 is further used to generate an inquiry network packet recording the service multicast address to inquire whether the address is occupied and to generate a reply network packet recording the service multicast address to reply that the address is occupied; The inquiry network packet is used when the service multicast creation module 5 generates a service multicast, and the communication module 1 6 sends it to the public multicast once at an interval of 100ms; The communication module 1 6 is used for the service server 1 to send and receive network packets to the public multicast and service multicast set on the local area network 7; The channel occupancy processing module 4 is used for processing and judging the reply network packet; The channel occupation processing module 4 compares the service multicast address in the received reply network packet with the service multicast address generated by the service multicast address generation module 3 to see if they are the same; If they are the same, the channel occupancy processing module 4 sends a service multicast occupancy signal to the service server 1, and the service server 1 sends a service multicast generation signal to the service multicast creation module 5; If they are not the same, the channel occupancy processing module 4 sends a service multicast available signal to the service server 1, and the service server 1 sends a joining invitation network packet sending instruction to the communication module 1 6.
[0027] The client unit includes a client device 9, a communication module 2 10 and a channel search module 11; The client device 9 is connected to the communication module 2 10 and the channel search module 11, and the communication module 2 10 is connected to the local area network 7; The communication module 2 10 is used for the client device 9 to send and receive network packets to the public multicast and business multicast set on the local area network 7; The client device 9 is used to identify whether the client identification code in the received joining invitation network packet matches; When a match occurs, the client device 9 reads the service multicast address in the joining invitation network packet, and searches for and joins the service multicast through the channel search module 11 .
[0028] The channel search module 11 is also used to select whether to join the service multicast.
[0029] Embodiment 3: In some embodiments, Figure 1-Figure 3 As shown, as a preferred embodiment of the present invention, in step 1, multiple service servers 1 and client devices 9 join a public multicast; Step 2: randomly generate a service multicast through the service multicast creation module 5 and generate a service multicast address through the service multicast address generation module 3; Step 3: The service server 1 generates a query network packet and sends it to the public multicast through the communication module 16 at a time interval of 100ms; When the communication module 16 does not receive a reply network packet after the inquiry network packet is sent more than 10 times, the service server 1 determines that the service multicast is not occupied, and the communication module 16 sends a joining invitation network packet to the public multicast; When the communication module 1 6 receives the reply network packet, the communication module 1 6 sends the reply network packet to the business server 1, and the business server 1 sends it to the channel occupation processing module 4; Step 4, the channel occupancy processing module 4 determines whether the service multicast address in the reply network packet is the same as the service multicast address generated by the service multicast address generation module 3; If they are the same, the channel occupancy processing module 4 determines that the service multicast is occupied, and the channel occupancy processing module 4 sends a multicast reset instruction to the service server 1. The service server 1 sends a multicast reset instruction to the service multicast creation module 5. The service multicast creation module 5 deletes the service multicast and generates another service multicast, and returns to step 3; If they are not the same, the service server 1 determines that the service multicast is not occupied, and the communication module 1 6 sends a joining invitation network packet to the public multicast; Step 5, when the communication module 1 6 receives the inquiry network packet, the communication module 1 6 sends the inquiry network packet to the business server 1, and the business server 1 sends it to the channel occupancy processing module 4; Step 6, the channel occupancy processing module 4 compares whether the service multicast address in the query network packet is the same as the service multicast address used by the communication module 1 6; If they are the same, the business server 1 generates a reply network packet and sends it to the communication module 1 6, and the communication module 1 6 sends it to the public multicast; If they are not the same, return to step 5.
[0030] Step 7, the communication module 2 10 receives the joining invitation network packet on the public multicast and sends it to the client device 9; Step 8, the client device 9 determines whether the client identification code recorded in the invitation network packet matches itself; If there is a match, the client device 9 extracts the service multicast address in the joining invitation network packet and searches through the channel search module 11 .
[0031] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements will not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A multicast-based search and discovery model, characterized in that: including multiple business units, multiple customer units and local area networks (7); The business unit generates a customer identification code of the customer unit paired with it; The local area network (7) is communicatively connected to a public multicast creation module (8) for creating a public multicast for communication between multiple service units and multiple client units; The service unit is used to create a service multicast; The public multicast is used for querying network packets between multiple service units to inquire whether the service multicast is occupied; When a service multicast is occupied by a service unit, it replies to the public multicast with a reply network packet indicating that the service multicast is occupied; When the service multicast is not occupied, the service unit that creates the service multicast sends a joining invitation network packet that records the service multicast address and the client identification code to the public multicast; The public multicast is also used for the client unit to receive a joining invitation network packet and identify whether the client identification code in the joining invitation network packet is paired with it, and when paired, the service unit searches for the service multicast address in the joining invitation network packet; The client unit chooses whether to interact with the user unit for private network data via service multicast.
2. The multicast-based search and discovery model according to claim 1, characterized in that: The service unit comprises a service server (1), an identity creation module (2), a service multicast address generation module (3), a channel occupancy processing module (4), a service multicast creation module (5) and a communication module 1 (6); The service server (1) is in communication connection with the identity creation module (2), the service multicast address generation module (3), the channel occupancy processing module (4), the service multicast creation module (5), and the communication module 1 (6); The channel occupancy processing module (4) is connected in communication with the service multicast address generation module (3), and the service multicast address generation module (3) is connected in communication with the service multicast creation module (5); The service multicast creation module (5) and the communication module 1 (6) are both connected to the local area network (7); The service multicast creation module (5) is used to create a service multicast set on the local area network (7); The service multicast address generation module (3) is used to generate a service multicast address; The identity creation module (2) is used to create a customer identification code.
3. The multicast-based search discovery model according to claim 2, characterized in that: The service server (1) is used to generate a joining invitation network packet recording the service multicast address and the client identification code; The service server (1) is further used to generate an inquiry network packet containing a service multicast address and inquiring whether the address is occupied, and to generate a reply network packet containing a service multicast address and inquiring whether the address is occupied.
4. The multicast-based search discovery model according to claim 3, characterized in that: The query network packet is used for sending to the public multicast once at a regular interval of 100ms by the communication module 1 (6) when the service multicast creation module (5) generates the service multicast; The communication module 1 (6) is used for the service server (1) to send and receive network packets to the public multicast and service multicast set up on the local area network (7); The channel occupancy processing module (4) is used to respond to the processing judgment of the network packet.
5. The multicast-based search and discovery model according to claim 4, characterized in that: The channel occupation processing module (4) compares the service multicast address in the received reply network packet with the service multicast address generated by the service multicast address generation module (3) to see whether they are the same; If they are the same, the channel occupation processing module (4) sends a service multicast occupation signal to the service server (1), and the service server (1) sends a service multicast generation signal to the service multicast creation module (5); If they are not the same, the channel occupancy processing module (4) sends a service multicast available signal to the service server (1), and the service server (1) sends a joining invitation network packet sending instruction to the communication module 1 (6).
6. The multicast-based search and discovery model according to claim 5, characterized in that: The client unit comprises a client device (9), a communication module 2 (10) and a channel search module (11); The client device (9) is in communication connection with the communication module 2 (10) and the channel search module (11), and the communication module 2 (10) is in communication connection with the local area network (7).
7. The multicast-based search discovery model according to claim 6, characterized in that: The communication module 2 (10) is used for the client device (9) to send and receive network packets to the public multicast and service multicast set on the local area network (7); The client device (9) is used to identify whether the client identification code in the received network invitation packet matches; When a match is found, the client device (9) reads the service multicast address in the joining invitation network packet, and searches for and joins the service multicast through the channel search module (11).
8. The multicast-based search and discovery model according to claim 7, characterized in that: The channel search module (11) is also used to select whether to join the service multicast.
9. The multicast-based search and discovery model according to claim 8, characterized in that: Step 1: multiple service servers (1) and client devices (9) join a common multicast; Step 2: randomly generate a service multicast through the service multicast creation module (5) and generate a service multicast address through the service multicast address generation module (3); Step 3, the business server (1) generates an inquiry network packet and sends it to the public multicast through the communication module 1 (6) once every 100ms; When the communication module 1 (6) does not receive a reply network packet after the inquiry network packet is sent more than 10 times, the service server (1) determines that the service multicast is not occupied, and the communication module 1 (6) sends a joining invitation network packet to the public multicast; When the communication module 1 (6) receives the reply network packet, the communication module 1 (6) sends the reply network packet to the business server (1), and the business server (1) sends it to the channel occupation processing module (4); Step 4: the channel occupancy processing module (4) determines whether the service multicast address in the reply network packet is the same as the service multicast address generated by the service multicast address generation module (3); If they are the same, the channel occupation processing module (4) determines that the service multicast is occupied, and the channel occupation processing module (4) sends a multicast reset instruction to the service server (1). The service server (1) sends a multicast reset instruction to the service multicast creation module (5). The service multicast creation module (5) deletes the service multicast and generates another service multicast, and returns to step 3. If they are not the same, the service server (1) determines that the service multicast is not occupied, and the communication module 1 (6) sends a joining invitation network packet to the public multicast; Step 5: When the communication module 1 (6) receives the inquiry network packet, the communication module 1 (6) sends the inquiry network packet to the business server (1), and the business server (1) sends it to the channel occupancy processing module (4); Step 6, the channel occupancy processing module (4) compares the service multicast address in the query network packet with the service multicast address being used by the communication module 1 (6) to see if they are the same; If they are the same, the business server (1) generates a reply network packet and sends it to the communication module one (6), and the communication module one (6) sends it to the public multicast; If they are not the same, return to step 5.
10. The multicast-based search discovery model according to claim 9, characterized in that: Step 7, the communication module 2 (10) receives the joining invitation network packet on the public multicast and sends it to the client device (9); Step 8, the client device (9) determines whether the client identification code recorded in the invitation network packet matches its own. If a match is found, the client device (9) extracts the service multicast address in the network invitation packet and searches for it through the channel search module (11).
Citation Information
Patent Citations
Method, apparatus and system for monitoring session based on multicast technology
CN101442502A
Group communication method and device
CN110798812A
Subscription service data transmission method and device, electronic equipment and storage medium
CN118055154A
Pre-boot multicast address management protocol for a computer network
US20020198972A1