Method for hiding peer-to-peer entity communication in cross-wired and wireless networking communication scenarios
By adding an application layer device between edge nodes and wireless nodes, the peer entity of the intermediate device is hidden, which solves the problem that the highest-level peer entities between edge nodes cannot communicate directly, and realizes a simplified network architecture design and communication support.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-06
- Publication Date
- 2026-03-27
AI Technical Summary
In scenarios where wired network edge nodes communicate across wired and wireless networks via wireless networks, existing technologies cannot enable direct communication between the highest-level peer entities between edge nodes, leading to difficulties in network architecture design and use.
By adding an application layer device between the edge node and the wireless node, the peer entity of the intermediate device is hidden, and direct communication is achieved through the peer entity of the highest layer of the protocol stack, supporting bidirectional unicast, broadcast and multicast communication.
It simplifies the design, use, and development of network architecture and network scenarios, and enables direct communication between edge nodes.
Smart Images

Figure CN116436996B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of communication. More particularly, the present application relates to a method for hiding peer-to-peer entity communication in a cross-wired and wireless networking communication scenario between wired network edge nodes via a wireless network. BACKGROUND
[0002] In a cross-wired and wireless networking communication scenario between wired network edge nodes via a wireless network, from the perspective of the edge nodes, the protocol stack architecture of the wireless nodes that they can connect to has three cases: 1-layer, 2-layer, and 3-layer, as shown in Figures 4-6 . The protocol stack peer-to-peer entities between the edge nodes have three modes: MAC-to-MAC, IP-to-IP, and APP-to-APP, as shown in Figures 7-9 . In this case, there are two architecture cases:
[0003] First, considering the three protocol stack architectures of the wireless nodes, for the case of Figures 4-6 , since the wireless nodes directly connect to devices (such as PCs) whose highest layer is the APP layer, they can communicate normally, i.e., multiple PCs can communicate with each other via the wireless nodes that they directly connect to. In other words, when APP-to-APP is interposed with wireless nodes having three possible architectures, they can still communicate normally, and the APP layer-to-APP layer can ensure direct communication. The protocol stack architecture in this case corresponds to Figure 9 . Figures 10-12
[0004] Second, however, for the edge nodes, if MAC-to-MAC or IP-to-IP is interposed with wireless nodes, the protocol stack architecture of some wireless nodes causes the highest layer peer-to-peer entities (the MAC layer or the IP layer) between the two edges to be unable to communicate directly. In this case, as shown in Figures 13-14 , the current technology cannot enable the edges to communicate directly in the architecture of Figures 13-14 , which causes difficulties for users in designing, using, and developing network architectures and network scenarios. SUMMARY
[0005] An object of the present application is to solve at least the above problems and / or deficiencies, and to provide at least the advantages described later.
[0006] To achieve these objects and other advantages and in view of prior art, a method for hiding peer-to-peer entity communication in a cross-wired and wireless networking communication scenario is provided. By adding a device whose highest layer is the application layer between the edge nodes and the wireless nodes, the peer-to-peer entities of the intermediate devices on the wireless network side are hidden based on the highest layer peer-to-peer entities between the edge nodes, so that direct communication between the nodes can be achieved through the highest layer peer-to-peer entities of the protocol stack.
[0007] The device is configured to be able to, but not limited to, implement based on a wireless network.
[0008] Preferably, a communication network across wired and wireless is formed by the edge node A, the device A, the wireless node A on the sending side, and the edge node B, the device B, the wireless node B on the receiving side, so that the multiple terminals I on the sending side can communicate with the multiple terminals II on the receiving side in a bidirectional unicast, broadcast, and groupcast manner.
[0009] Preferably, in the communication network, the step of sending a broadcast message from the sending side to the receiving side is configured as follows:
[0010] S1. The broadcast message sent by the terminal I is sent to the interface side of the device A working in a promiscuous mode through the edge node A, so as to directly send the broadcast message to the application layer of the device A;
[0011] S2. The application layer of the device A adds a network broadcast header for wireless communication to the received broadcast message to obtain a message I, and sends the message I to the wireless node A;
[0012] S3. The wireless node A sends the received message I to the wireless node B through broadcast;
[0013] S4. After the wireless node B receives the message I, the message I is sent to the device B. After the application layer of the device B extracts the broadcast message from the message I, the broadcast message is sent to the edge node B through the device B interface through a raw socket;
[0014] S5. The edge node B sends the broadcast message to the terminal II after looking up by itself.
[0015] Preferably, in the communication network, the step of sending a unicast message from the receiving side to the sending side is configured as follows:
[0016] S1. The unicast message sent by the terminal II is sent to the interface side of the device B working in a promiscuous mode through the edge node B, so as to directly send the unicast message to the application layer of the device B;
[0017] S2. The application layer of the device B adds a network unicast header for wireless communication to the received unicast message to obtain a message II, and sends the message II to the wireless node B;
[0018] S3. The wireless node B sends the received message II to the wireless node A through unicast;
[0019] S4. After the wireless node A receives the message II, the message II is sent to the device A. After the application layer of the device A extracts the unicast message from the message II, the unicast message is sent to the edge node A through the device A interface through a raw socket;
[0020] S5, the edge node A sends the unicast message to the terminal I after looking up the table by itself.
[0021] Preferably, in the communication network, the step of sending the multicast message from the sending side to the receiving side is configured as follows:
[0022] S1, the edge node A sends the multicast message to the interface side of the device A working in the promiscuous mode, so as to send the multicast message directly to the application layer of the device A;
[0023] S2, the application layer of the device A adds a network broadcast header for wireless communication to the received multicast message to obtain message III, and sends the message III to the wireless node A;
[0024] S3, the wireless node A sends the received message III to the wireless node B through broadcasting;
[0025] S4, the wireless node B sends the received message III to the device B, and the application layer of the device B extracts the multicast message from the message III and decides whether to send the multicast message to the edge node B through the device B interface through the original socket after looking up the multicast table;
[0026] S5, the edge node B decides to send the received multicast message to the terminal II directly connected to the edge node B according to the standard multicast mechanism.
[0027] Preferably, the application layers of the device A and the device B both establish corresponding unicast forwarding tables and / or multicast forwarding tables, so that the device A and the device B support bidirectional forwarding of unicast, multicast and broadcast.
[0028] Preferably, the step of establishing the unicast forwarding table comprises:
[0029] S1, the application layer of the device A obtains the corresponding unicast forwarding table I from the edge node A, so that the message with the terminal I as the destination address should be sent to the edge node A based on the forwarding table I;
[0030] S2, the application layer of the device B obtains the corresponding unicast forwarding table II from the edge node B, so that the message with the terminal II as the destination address should be sent to the edge node B based on the forwarding table II;
[0031] S3, the device A and the device B exchange the unicast forwarding tables mastered by each other, so that the device B knows that the message with the terminal I as the destination address should be sent to the device A, and the device A knows that the message with the terminal II as the destination address should be sent to the device B.
[0032] Preferably, the step of establishing the multicast forwarding table comprises:
[0033] S1, the application layer of the device A acquires the corresponding multicast forwarding table I from the edge node A, so that the device A determines that the packet to the multicast destination address should be sent to the edge node A based on the multicast forwarding table I;
[0034] S2, the application layer of the device B acquires the corresponding multicast forwarding table II from the edge node B, so that the device B determines that the packet to the multicast destination address should be sent to the edge node B based on the multicast forwarding table II;
[0035] S3, the devices A and B exchange the multicast forwarding tables mastered by each other, so that the application layer of the device A or the device B determines whether the multicast packet from the remote edge node should be sent to the edge node directly connected to itself by inquiring the corresponding multicast forwarding table, and further sent to the terminal device of the corresponding port by the edge node.
[0036] The application at least has the following beneficial effects: the application hides the peer entity of the intermediate device by newly designing a device with the highest layer as the application layer APP between the edge node and the wireless node, solves the problem that the highest layer peer entities between two edge nodes cannot be directly connected for communication, and the design content of the application can simplify and facilitate the design, use and development of the network architecture and network scene by the user.
[0037] Other advantages, objects and features of the application will be partly embodied by the following description, and partly understood by those skilled in the art through research and practice of the application. BRIEF DESCRIPTION OF DRAWINGS
[0038] Figure 1 The equivalent peer entity model for hiding the protocol stack by compatibility with the IP layer is involved in the application;
[0039] Figure 2 The equivalent peer entity model for hiding the protocol stack by compatibility with the MAC layer is involved in the application;
[0040] Figure 3 The physical application scene of the application;
[0041] Figure 4 The wireless node protocol stack of the prior art is layer 1;
[0042] Figure 5 The wireless node protocol stack of the prior art is layer 2;
[0043] Figure 6 The wireless node protocol stack of the prior art is layer 3;
[0044] Figure 7 The peer entity between the edge nodes of the prior art is the MAC layer at the highest layer;
[0045] Figure 8 for the prior art in which the highest layer between edge nodes is an IP layer peer entity;
[0046] Figure 9 for the prior art in which the highest layer between edge nodes is an APP layer peer entity;
[0047] Figure 10 for the prior art in which APP-to-APP wireless nodes are interposed with a highest layer of IP;
[0048] Figure 11 for the prior art in which APP-to-APP wireless nodes are interposed with a highest layer of MAC;
[0049] Figure 12 for the prior art in which APP-to-APP wireless nodes are interposed with a highest layer of PHY;
[0050] Figure 13 for the prior art in which the uppermost layer between two edge nodes cannot directly communicate due to the use of 3-layer peer entities in IP-to-IP wireless nodes interposed therebetween;
[0051] Figure 14 for the prior art in which the uppermost layer between two edge nodes cannot directly communicate due to the use of 2-layer peer entities in MAC-to-MAC wireless nodes interposed therebetween. DETAILED DESCRIPTION
[0052] The present application will be further described in detail below with reference to the accompanying drawings so that those skilled in the art can implement it according to the written description and drawings.
[0053] For the two scenarios of Figure 13 a highest layer of IP conflict, and Figure 14 a highest layer of MAC conflict, the present application solves the problem of the highest layer peer entity between two edge nodes being unable to directly connect and communicate by hiding the peer entities of the devices interposed therebetween, and the specific solution is as follows:
[0054] 1. The solution proposed by the present application is to newly design and add a device (such as a PC) with a highest layer of APP (application layer) between the edge nodes and the wireless nodes. This makes the protocol stack of the node interposed therebetween not peer to the edge nodes, i.e., the whole consisting of the device and the wireless node is in a similar invisible transparent state, and the hiding is completed, so that the highest layer of the edge nodes can directly communicate. Specifically,
[0055] 1.1. As shown in FIG. 1, the device with a highest layer of APP is interposed between the edge nodes and the wireless nodes, and the device and the wireless node form a whole that is similar to invisible and transparent, so that the highest layer of the edge nodes can directly communicate. Figures 1-2As shown, the application relates to the equivalent peer entity model compatible with the IP layer and the MAC layer, and can realize protocol stack hiding. The highest layer is APP, and the devices (such as PCs) can realize cross-wired and wireless networking communication based on the wireless network (regardless of whether the wireless node is a 1-layer, 2-layer or 3-layer node) to cope with the situation that the wireless node may be different protocol stack architectures.
[0056] 1.2, further design the highest layer APP device and wireless node to form the whole peer entity hiding design, that is, from the perspective of the protocol stack of the highest layer of the two edge nodes, the whole between the two edge nodes becomes transparent.
[0057] 2, next, the solution of the application in communication is given, and the constructed physical networking scene is as shown in Figure 3 As shown, the bidirectional unicast, broadcast and multicast communication between terminal 1 and terminal 6 is realized.
[0058] 2.1, the steps of broadcasting the message from left to right are as follows:
[0059] 2.1.1, terminal 1 sends a broadcast message X (referred to as message X) to edge node A, and the right interface of edge node A sends the broadcast message X to PC_A device;
[0060] 2.1.2, the left interface of PC_A works in the promiscuous mode and directly sends the message X to the application layer of PC_A after receiving the message X;
[0061] 2.1.3, the application layer of PC_A adds a header for wireless network broadcast to the message X to form a message format of "wireless broadcast header + message X", and then the application layer of PC_A sends the message X from the right interface of PC_A to wireless device A through the raw socket (it is assumed that the network channel between PC_A and wireless device A is a network channel, and corresponding measures are taken if it is a non-IP network channel);
[0062] 2.1.4, wireless device A sends the received message to wireless device B through broadcast;
[0063] 2.1.5, wireless device B sends the message to PC_B device after receiving the message;
[0064] 2.1.6, the application layer of PC_B device extracts the message X from the broadcast message sent by PC_A after receiving the broadcast message;
[0065] 2.1.7, the application layer of PC_B sends the message X to edge node B through the right interface of PC_B through the raw socket;
[0066] 2.1.8, edge node B sends the message X to terminal 6 through table lookup.
[0067] 2.2, the steps of unicast message from right to left are as follows:
[0068] 2.2.1, the terminal 6 sends unicast message Y (referred to as message Y) to the edge node B, and the left interface of the edge node B sends the unicast message Y;
[0069] 2.2.2, the right interface of the PC_B device works in the promiscuous mode and directly sends the message Y to the PC_B application layer after receiving the message Y;
[0070] 2.2.3, the PC_B application layer adds a header for wireless network unicast to the message Y, forms the message format of "wireless unicast header + message Y", and then sends the message Y from the left interface of the PC_B to the wireless device B through the raw socket (it is assumed that the network channel between the PC_B and the wireless B device is adopted, and corresponding measures are taken if it is a non-IP network channel);
[0071] 2.2.4, the wireless device B sends the received message to the wireless device A through unicast;
[0072] 2.2.5, the wireless device A sends the received message to the PC_A device;
[0073] 2.2.6, the application layer of the PC_A device extracts the message Y from the unicast message sent by the PC_B;
[0074] 2.2.7, the PC_A application layer sends the message Y to the edge node A through the left interface of the PC_A through the raw socket;
[0075] 2.2.8, the edge node A sends the message Y to the terminal 1 through table lookup.
[0076] 2.3, the steps of multicast message from left to right are as follows:
[0077] 2.3.1, the right interface of the edge node A device sends multicast message Z (referred to as message Z) to the PC_A device;
[0078] 2.3.2, the left interface of the PC_A works in the promiscuous mode and directly sends the message Z to the PC_A application layer after receiving the message Z;
[0079] 2.3.3, the PC_A application layer adds a header for wireless network broadcast to the message Z, forms "wireless broadcast header + message Z", and then sends the message Z from the right interface of the PC_A to the wireless device A through the raw socket (it is assumed that the network channel between the PC_A and the wireless A device is adopted, and corresponding measures are taken if it is a non-IP network channel);
[0080] 2.1.4, the wireless device A sends the received message to the wireless device B through broadcast;
[0081] 2.1.5, the wireless device B sends a message to the PC_B device after receiving the message;
[0082] 2.3.6, the application layer of the PC_B device extracts the multicast message Z from the broadcast message sent by the PC_A after receiving the broadcast message;
[0083] 2.3.7, the PC_B application layer queries the multicast table and decides whether to send the message Z to the edge node B through the right interface of the PC_B through the raw socket, and then the edge node B decides to further send the received message (if any) to those terminals directly connected according to the standard multicast mechanism.
[0084] 3, the above process involves designing and establishing a unicast forwarding table and / or a multicast forwarding table (a dedicated forwarding table is not needed for broadcast) on the highest layer APP device (such as PC) to support bidirectional forwarding of unicast, multicast and broadcast.
[0085] 3.1, the steps of establishing a unicast forwarding table are as follows:
[0086] When forwarding a unicast message from right to left, the PC_B device knows that the data needs to be sent to the PC_A instead of other devices (such as PC_C which is not shown in the figure) when adding the wireless network unicast header. The specific measures are as follows:
[0087] 3.1.1, the PC_A application layer obtains the unicast forwarding table of the edge node A (such as a switching device), so that the PC_A knows that the message to the terminal 1 / 2 / 3 should be sent to the edge node A;
[0088] 3.1.2, the PC_B application layer obtains the unicast forwarding table of the edge node B (such as a switching device), so that the PC_B knows that the message to the terminal 4 / 5 / 6 should be sent to the edge node B;
[0089] 3.1.3, the PC_A and the PC_B exchange the unicast forwarding tables they respectively hold, so that the PC_B knows that the message to the terminal 1 / 2 / 3 (such as message Y) should be sent to the PC_A, and at the same time, so that the PC_A knows that the message to the terminal 4 / 5 / 6 should be sent to the PC_B.
[0090] 3.2, the steps of establishing a multicast forwarding table are as follows:
[0091] When forwarding a multicast message from left to right, it is assumed that the PC_A is a 1-to-2 application scenario, i.e. the opposite end of the PC_A has two devices of PC_B and PC_C (PC_C is not shown in the figure). The specific measures are as follows:
[0092] 3.2.1, PC_A obtains the multicast forwarding table of edge node A, so that PC_A knows that the packet to the multicast destination address (terminal) should be sent to edge node A;
[0093] 3.2.2, PC_B obtains the multicast forwarding table of edge node B, so that PC_B knows that the packet to the multicast destination address (terminal) should be sent to edge node B;
[0094] 3.2.3, PC_A and PC_B exchange the multicast forwarding table each holds, so that PC_B knows whether the multicast packet sent from edge node A should be sent to edge node B directly connected to itself (i.e. PC_B knows and judges whether the packet should be forwarded to edge node B by inquiring whether edge node B has successfully subscribed to the reception of the multicast packet before edge node A), and so that PC_A knows whether the multicast packet sent from edge node B should be sent to edge node A directly connected to itself (i.e. whether edge node A has successfully subscribed to the reception of the multicast packet before edge node B).
[0095] The application is directed to the scenario of cross-wired and wireless networking communication between wired network edge nodes through wireless network, and a method of directly communicating the highest layer peer entities between nodes is newly designed and implemented, which realizes the direct communication of the highest layer peer entities between edge nodes by hiding a plurality of intermediate devices between the edge nodes, and realizes the effect that the intermediate devices are transparent to the highest layer peer entities between the edge nodes.
[0096] The effect of the application is that, for the scenario of cross-wired and wireless networking communication between wired network edge nodes through wireless network, the design content of the application can simplify and facilitate the design, use and development of network architecture and network scenario by users.
[0097] The above scheme is only a description of a preferred example, but is not limited thereto. In the implementation of the application, appropriate replacement and / or modification can be made according to the needs of users.
[0098] The number of devices and the scale of processing described herein are used to simplify the description of the application. The application, modification and change of the application to those skilled in the art are obvious.
[0099] Although the embodiments of the application have been disclosed as above, it is not limited to the application listed in the specification and the embodiments. It can be fully applied to various fields suitable for the application. Additional modifications can be easily realized by those skilled in the art. Therefore, the application is not limited to specific details and the figures shown and described herein, without departing from the general concept defined by the claims and the equivalent scope.
Claims
1. A method for hiding peer-to-peer entity communication in a cross-wired and wireless networking communication scenario, characterized by, By adding a device with the highest layer being an application layer between the edge node and the wireless node, the peer entity of the intermediate device on the wireless network side is hidden based on the peer entity of the highest layer of the protocol stack between the edge nodes, so that direct communication between the nodes can be realized through the peer entity of the highest layer of the protocol stack. The device is configured to be based on a wireless network, but is not limited thereto. A communication network across wired and wireless networks is formed by the edge node A, the device A and the wireless node A on the sending side, and the edge node B, the device B and the wireless node B on the receiving side, so that multiple terminals I on the sending side can perform bidirectional unicast, broadcast and multicast communication with multiple terminals II on the receiving side.
2. The method for hiding peer entity communication in a cross wired and wireless networking communication scenario as claimed in claim 1 wherein, In the communication network, the step of sending a broadcast message from the sending side to the receiving side is configured as follows: S1. The broadcast message sent by the terminal I is sent to the interface side of the device A working in a promiscuous mode through the edge node A, so as to directly send the broadcast message to the application layer of the device A; S2. The application layer of the device A adds a network broadcast header for wireless communication to the received broadcast message to obtain a message I, and sends the message I to the wireless node A; S3. The wireless node A sends the received message I to the wireless node B through broadcast; S4. The wireless node B sends the received message I to the device B, and the application layer of the device B extracts the broadcast message from the message I, and sends the broadcast message to the edge node B through the interface of the device B through an original socket; S5. The edge node B sends the broadcast message to the terminal II through table lookup.
3. The method for hiding peer entity communications in a hybrid wired and wireless networking scenario as recited in claim 1, wherein, In the communication network, the step of sending a unicast message from the receiving side to the sending side is configured as follows: S1. The unicast message sent by the terminal II is sent to the interface side of the device B working in a promiscuous mode through the edge node B, so as to directly send the unicast message to the application layer of the device B; S2. The application layer of the device B adds a network unicast header for wireless communication to the received unicast message to obtain a message II, and sends the message II to the wireless node B; S3. The wireless node B sends the received message II to the wireless node A through unicast; S4. The wireless node A sends the received message II to the device A, and the application layer of the device A extracts the unicast message from the message II, and sends the unicast message to the edge node A through the interface of the device A through an original socket; S5. The edge node A sends the unicast message to the terminal I through table lookup.
4. The method for hiding peer entity communications in a hybrid wired and wireless networking scenario as recited in claim 1, wherein, In the communication network, the step of sending a multicast message from the sending side to the receiving side is configured as follows: S1. The edge node A sends a multicast message to the interface side of the device A working in a promiscuous mode, so as to directly send the multicast message to the application layer of the device A; S2. The application layer of the device A adds a network broadcast header for wireless communication to the received multicast message to obtain a message III, and sends the message III to the wireless node A; S3. The wireless node A sends the received message III to the wireless node B through broadcast; S4. The wireless node B sends the received message III to the device B, and the application layer of the device B extracts the multicast message from the message III, and decides whether to send the multicast message to the edge node B through the interface of the device B through an original socket after querying a multicast table; S5, the edge node B decides to send the received multicast message to the terminal II directly connected to it according to the standard multicast mechanism.
5. The method for hiding peer entity communication in a cross wired and wireless networking communication scenario as claimed in any one of claims 1, 2, 3, wherein, The application layer of the device A and the device B both establish corresponding unicast forwarding table and / or multicast forwarding table, so that the device A and the device B support bidirectional forwarding of unicast, multicast and broadcast.
6. The method for hiding peer entity communications in a hybrid wired and wireless networking scenario as recited in claim 5, wherein, The establishment of the unicast forwarding table comprises: S1, the application layer of the device A acquires the corresponding unicast forwarding table I from the edge node A, so that the device A determines that the message with the destination address of the terminal I should be sent to the edge node A based on the forwarding table I; S2, the application layer of the device B acquires the corresponding unicast forwarding table II from the edge node B, so that the device B determines that the message with the destination address of the terminal II should be sent to the edge node B based on the forwarding table II; S3, the device A and the device B exchange the unicast forwarding table mastered by each other, so that the device B knows that the message with the destination address of the terminal I should be sent to the device A, and the device A knows that the message with the destination address of the terminal II should be sent to the device B.
7. The method for hiding peer entity communications in a wired and wireless networking communication scenario as recited in claim 5, wherein, The establishment of the multicast forwarding table comprises: S1, the application layer of the device A acquires the corresponding multicast forwarding table I from the edge node A, so that the device A determines that the message to the multicast destination address should be sent to the edge node A based on the multicast forwarding table I; S2, the application layer of the device B acquires the corresponding multicast forwarding table II from the edge node B, so that the device B determines that the message to the multicast destination address should be sent to the edge node B based on the multicast forwarding table II; S3, the device A and the device B exchange the multicast forwarding table mastered by each other, so that the application layer of the device A or the device B determines whether the multicast message from the remote edge node should be sent to the edge node directly connected to itself by inquiring the corresponding multicast forwarding table, and further sent to the terminal device of the corresponding port by the edge node.
Citation Information
Patent Citations
System and method for realizing service intercommunication
CN101064660A