A network communication method, device, equipment and storage medium

By parsing and matching unicast messages in the software-defined network controller, the problem of cross-segment discovery and broadcast storms of multicast messages in wireless LANs is solved, enabling efficient discovery and control of multicast messages and improving network performance. and flexibility in device connection strategies.

CN115767155BActive Publication Date: 2024-10-22CHENGDU SKSPRUCE TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202211089944.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-07
Publication Date
2024-10-22
Estimated Expiration
2042-09-07

AI Technical Summary

Technical Problem

In wireless LANs, the performance and efficiency of multicast packets are low, resulting in reduced performance and impact on battery usage. At the same time, cross-VLAN devices cannot be discovered in enterprise scenarios, leading to broadcast storm problems.

Method used

By obtaining and parsing unicast messages in the software-defined network controller, updating the available service list, and matching service requests and responses according to preset policies, multicast messages are discovered and controlled across network segments to avoid broadcast storms.

Benefits of technology

It effectively solves the problem of multicast packet discovery across network segments, controls broadcast storms, and improves network performance and the flexibility of device connection strategies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115767155B_ABST
    Figure CN115767155B_ABST
Patent Text Reader

Abstract

The present application discloses a network communication method, apparatus, device and storage medium, which relates to the field of communication technology and is applied to a software-defined network controller, including: obtaining a first unicast message corresponding to a service request end and a second unicast message corresponding to a service response end; parsing the first unicast message and the second unicast message by deep message detection technology, and updating the list of available services using the data related to the service request end in the parsed first unicast message; matching the parsed second unicast message with the list of available services, so that the service response end responds to the request of the service request end according to the matching result. Through the technical solution of the present application, problems such as device discovery for screen projection across network segments can be solved in large-scale WLAN networking, and the broadcast storm problem caused by the large Layer 2 network set up for screen projection in large-scale WLANs can also be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a network communication method, device, equipment and storage medium. Background Art

[0002] Wi-Fi (Wireless-Fidelity) is currently the main technology for terminal devices to access wireless networks. Mobile terminals represented by Apple devices have changed people's habits and lives. For large-scale enterprise WLAN (Wireless Local Area Networks), with the need for business flexibility expansion and the maturity and application of software-defined networks (SDN), the application of SDN technology in WLAN networks has become an industry trend and mainstream. One of the implementation methods refers to the patent: WLAN hierarchical networking system and method based on SDN (CN104582004A).

[0003] In the wireless LAN scenario, emerging applications rely on multicast protocols, such as wireless screen projection, etc. The main protocol is mDNS (multicast Domain Name System). Printers or screen projection TVs that support Bonjour protocol (zero configuration networking) continuously broadcast requests in the subnet to discover connected devices. Since multicast messages are protocols with relatively low performance and efficiency in WLAN networks, the air interface occupation of multicast messages greatly reduces the performance of wireless networks, and frequent multicast message sending also affects the battery use of devices. At present, in home use scenarios, they are all based on one network segment, and there are no problems such as multiple devices and permission control; for enterprise scenarios such as schools and large enterprises, under the SDN-based WLAN hierarchical networking architecture, the following devices are usually divided into multiple VLANs (Virtual Local Area Networks) and network segments, and devices across VLANs cannot be discovered. Since screen projection and other devices usually need to consider security control, if all devices are in one network segment, it often leads to more serious broadcast storm problems, so broadcasts in enterprise networks are usually suppressed or directly banned. Typical methods for enterprises and large Ethernet networks to solve broadcast storms refer to: Broadcast Storm Suppression Method and System (CN103209092B)

[0004] In summary, how to effectively detect multicast messages across network segments and effectively resolve broadcast storms are issues that need to be resolved. Summary of the invention

[0005] In view of this, the purpose of the present invention is to provide a network communication method, device, equipment and storage medium, which can effectively solve the problem of multicast message discovery across network segments and effectively solve broadcast storms. The specific scheme is as follows:

[0006] In a first aspect, the present application discloses a network communication method, which is applied to a software-defined network controller, comprising:

[0007] Obtain a first unicast message corresponding to the service request end and a second unicast message corresponding to the service response end; wherein the first unicast message is a message sent by the service request end after the multicast message is converted by the AC / AP, and the second unicast message is a message sent by the service response end after the multicast message is converted by the AC / AP;

[0008] Parsing the first unicast message and the second unicast message by deep message inspection technology, and updating the available service list by using the data related to the service request end in the parsed first unicast message;

[0009] The parsed second unicast message is matched with the available service list according to a preset strategy, so that the service responder responds to the request of the service requester according to the matching result.

[0010] Optionally, the obtaining of a first unicast message corresponding to the service request end and a second unicast message corresponding to the service responder end includes:

[0011] Acquire a first unicast message obtained by converting the mdns multicast message sent by the service request end through the AC / AP and a second unicast message obtained by converting the mdns multicast message sent by the service responder through the AC / AP.

[0012] Optionally, after obtaining the first unicast message corresponding to the service request end and the second unicast message corresponding to the service response end, the method further includes:

[0013] Determining a current application scenario of the software defined network controller;

[0014] If the current application scenario is the first application scenario with a cross-network segment situation, controlling the AC to centrally forward the first unicast message and the second unicast message;

[0015] If the current application scenario is the second application scenario in which there is no cross-network segment situation, the AP is controlled to locally forward the first unicast message and the second unicast message.

[0016] Optionally, matching the parsed second unicast message with the available service list according to a preset policy so that the service responder responds to the request of the service requester according to the matching result includes:

[0017] When the parsed second unicast message matches the available service list, the service responder forwards the message carrying the corresponding parameter list to the service requester, and the service requester forwards the message carrying the corresponding parameter list to the service responder, so that the service requester establishes a connection with the service responder.

[0018] Optionally, the network communication method further includes:

[0019] The data plane policy is used to monitor the layer 2 message forwarded by the AC / AP.

[0020] Optionally, the obtaining of a first unicast message corresponding to the service request end and a second unicast message corresponding to the service responder end includes:

[0021] A first unicast message corresponding to the service request end and a second unicast message corresponding to the service response end are obtained based on the OPENFLOW communication protocol.

[0022] In a second aspect, the present application discloses a network communication device, which is applied to a software-defined network controller, comprising:

[0023] A message acquisition module, used to acquire a first unicast message corresponding to a service request end and a second unicast message corresponding to a service response end; wherein the first unicast message is a message sent by the service request end after converting a multicast message through an AC / AP, and the second unicast message is a message sent by the service response end after converting a multicast message through the AC / AP;

[0024] A list updating module, configured to parse the first unicast message and the second unicast message by using a deep message inspection technology, and update the available service list by using the data related to the service request end in the parsed first unicast message;

[0025] The list matching module is used to match the parsed second unicast message with the available service list according to a preset strategy, so that the service responder can respond to the request of the service requester according to the matching result.

[0026] Optionally, the message acquisition module includes:

[0027] The communication unit is used to obtain a first unicast message corresponding to the service request end and a second unicast message corresponding to the service response end based on the OPENFLOW communication protocol.

[0028] In a third aspect, the present application discloses an electronic device, comprising a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the network communication method as described above.

[0029] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the network communication method as described above.

[0030] In the present application, applied to a software-defined network controller, first, a first unicast message corresponding to a service request end and a second unicast message corresponding to a service response end are obtained; wherein, the first unicast message is a message sent by the service request end and obtained by converting a multicast message through an AC / AP, and the second unicast message is a message sent by the service response end and obtained by converting a multicast message through the AC / AP; then, the first unicast message and the second unicast message are parsed through deep message detection technology, and the data related to the service request end in the parsed first unicast message is used to update the available service list; finally, the parsed second unicast message is matched with the available service list according to a preset strategy, so that the service response end responds to the request of the service request end according to the matching result. It can be seen that under the WLAN hierarchical networking architecture based on SDN, since the control plane and the data plane are effectively separated, the broadcast data of the first unicast message corresponding to the service request end and the second unicast message corresponding to the service response end are reported to the SDN controller through the following AC / AP, so that the SDN controller can maintain the list of available services updated based on the service request end and the service response end. Through the centralized device anchor point of AC / AP, the problem of multicast message discovery across network segments can be effectively solved; at the same time, the message initiated by the service response end is matched with the list of available services on the SDN controller according to the preset strategy, and the discovery and connection strategy between network segments and devices can be flexibly controlled. In this way, not only the problem of multicast message across network segments is solved, but also the problem of multicast policy control is solved, and the problem of broadcast storm is effectively solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] 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 description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0032] Figure 1 A flow chart of a network communication method disclosed in this application;

[0033] Figure 2 A schematic diagram of the basic framework for migrating the AC+AP architecture network disclosed in this application to SDN;

[0034] Figure 3 A schematic diagram of a network communication method disclosed in this application;

[0035] Figure 4 A schematic diagram of a specific network communication process disclosed in this application;

[0036] Figure 5 A schematic diagram of a SDN controller service module disclosed in this application;

[0037] Figure 6 A flowchart of a specific network communication method disclosed in this application;

[0038] Figure 7 A schematic diagram of a network communication method disclosed in this application;

[0039] Figure 8 A schematic diagram of the structure of a network communication device disclosed in this application;

[0040] Fig. 9 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.

[0042] At present, in wireless LAN scenarios, emerging applications rely on multicast protocols. In home use scenarios, they are all based on one network segment, and there are no problems such as multiple devices and permission control. For enterprise scenarios such as schools and large enterprises, under the SDN-based WLAN hierarchical networking architecture, the following devices are usually divided into multiple VLANs and network segments, and devices across VLANs cannot be discovered. Since devices such as screen projection usually also need to consider security control, if all devices are in one network segment, it often leads to more serious broadcast storm problems.

[0043] To this end, the present application provides a network communication solution that can effectively solve the problem of multicast message discovery across network segments and effectively resolve broadcast storms.

[0044] The embodiment of the present invention discloses a network communication method, see Figure 1As shown, applied to a software-defined network controller, the method includes:

[0045] Step S11: Obtain a first unicast message corresponding to the service request end and a second unicast message corresponding to the service response end; wherein, the first unicast message is a message sent by the service request end after converting the multicast message through the AC / AP, and the second unicast message is a message sent by the service response end after converting the multicast message through the AC / AP.

[0046] In the embodiment of the present application, the main protocol is the mDNS protocol. For the service request end, it can correspond to screen projection devices such as Apple TV (Apple TV set-top box), and for the service response end, it can correspond to screen projection clients such as iPhone (Apple mobile phone). Specifically, in the SDN-based WLAN hierarchical networking architecture, the service request end and the service response end send their respective mdns multicast messages to AP (Access Point) / AC (Access Controller), and then AP / AC converts the multicast message into a unicast message and sends it to the SDN controller, where the communication protocol used between the SDN controller and AP / AC is the OPENFLOW protocol.

[0047] It should be pointed out that the SDN controller can monitor the Layer 2 messages in the entire wireless network with the help of the data plane strategy, that is, monitor the Layer 2 messages forwarded by the AC / AP. After the service requester and the service responder send mDNS multicast messages to the AC / AP, the corresponding devices of the service requester and the service responder can be registered based on the mDNS protocol to obtain some basic information about the devices of the service requester and the service responder, such as product version, model and other information. In addition, when the wireless network is covered by AC / AP, the AC / AP can be concentrated in the switch. In this way, the entire network equipment can be intuitively and uniformly discovered, upgraded, and configured in batches, even including the monitoring of wireless links and the management of wireless users. Figure 2 The figure shows the current SDN-based WLAN hierarchical networking system, which can realize the basic framework of migrating AC+AP architecture network to SDN. Figure 3 The figure shows a specific network communication method, which simplifies and expands the processing of broadcast messages, that is, the SDN controller is expanded to manage both wireless and wired scenarios, so that the wired and wireless are integrated, making the entire scenario more universal. The service request end (Advertising station) and the service response end (Queryingstation) can send multicast messages to the AC / AP or switch, and then forward the converted unicast messages to the SDN controller.

[0048] Step S12: parsing the first unicast message and the second unicast message by deep message inspection technology, and updating the available service list by using the data related to the service request end in the parsed first unicast message.

[0049] In the embodiment of the present application, a deep packet inspection (DPI) engine module is deployed in the SDN controller, which uses deep packet inspection technology to parse one or more packets forwarded by the service request end and the service responder through the AC / AP, obtain the context of the message, and then know the relevant parameters and device properties of the service request end and the service responder devices, and update the available service list.

[0050] Step S13: matching the parsed second unicast message with the available service list according to a preset strategy, so that the service responder responds to the request of the service requester according to the matching result.

[0051] In the embodiment of the present application, the second unicast message after parsing of the service response end is matched according to a preset strategy, and whether the service response end needs to respond is determined according to the matching result. Specifically, the second unicast message after parsing is matched with the available service list according to the preset strategy, so that the service response end responds to the request of the service request end according to the matching result, including: when the second unicast message after parsing matches the available service list, forwarding the message carrying the corresponding parameter list of the service response end to the service request end, and forwarding the message carrying the corresponding parameter list of the service request end to the service response end, so that the service request end establishes a connection with the service response end.

[0052] It is understandable that the preset policies can be set arbitrarily based on actual scenarios and needs. For example, in a school classroom, it can be set to allow the teacher's laptop or iPad to project the screen, but students' devices cannot project the screen. It can also be combined with the SDN controller for centralized policy control. For example, in three classrooms A, B, and C, it can be set that the devices of A and B are visible to each other, the devices of B and C are visible to each other, and the devices of A and C are invisible to each other, etc. More policies can be defined to meet more complex scenario applications.

[0053] In the present application, applied to a software-defined network controller, first, a first unicast message corresponding to a service request end and a second unicast message corresponding to a service response end are obtained; wherein, the first unicast message is a message sent by the service request end and obtained by converting a multicast message through an AC / AP, and the second unicast message is a message sent by the service response end and obtained by converting a multicast message through the AC / AP; then, the first unicast message and the second unicast message are parsed through deep message detection technology, and the data related to the service request end in the parsed first unicast message is used to update the available service list; finally, the parsed second unicast message is matched with the available service list according to a preset strategy, so that the service response end responds to the request of the service request end according to the matching result. It can be seen that under the WLAN hierarchical networking architecture based on SDN, since the control plane and the data plane are effectively separated, the broadcast data of the first unicast message corresponding to the service request end and the second unicast message corresponding to the service response end are reported to the SDN controller through the following AC / AP, so that the SDN controller can maintain the list of available services updated based on the service request end and the service response end. Through the centralized device anchor point of AC / AP, the problem of multicast message discovery across network segments can be effectively solved; at the same time, the message initiated by the service response end is matched with the list of available services on the SDN controller according to the preset strategy, and the discovery and connection strategy between network segments and devices can be flexibly controlled. In this way, not only the problem of multicast message across network segments is solved, but also the problem of multicast policy control is solved, and the problem of broadcast storm is effectively solved.

[0054] like Figure 4 The figure shows a logical diagram of a network communication process. Advertising Station corresponds to the service request end, and Querying Station corresponds to the service response end. The multicast message initiated by Advertising Station is converted by AC / AP into a unicast message and sent to the SDN controller. The SDN controller parses one or more messages through the DPI engine module, obtains the relevant parameters and device attributes of the station, and updates the list of available services. Similarly, Querying Station forwards the unicast message from AC / AP to the SDN controller, matches the existing service list, and then replies with a match or no match. The reply message carries the corresponding parameter list, that is, the service request end such as Apple TV can obtain the parameter list of the iPhone device to be connected, including a cross-segment list and / or a non-cross-segment list; at the same time, the service response end such as iPhone can also obtain the parameter list of the Apple TV device that can be connected, including a cross-segment list and / or a non-cross-segment list.

[0055] For example, to support the above service logic, it is necessary to add a service processing module to the SDN controller and add a proxy and forwarding module to the AC / AP, such as Figure 5 The figure shows a schematic diagram of the SDN controller business module. With the help of the data plane strategy, the second-layer messages in the entire wireless network can be monitored and forwarded according to the OPENFLOW flow table strategy. The DPI engine unit in the subnet management module can parse and obtain the context of the message, and then know the device type and other information, and update the list of available services, and determine whether to respond in combination with the preset strategy and device attributes. In large-scale WLAN networking, problems such as cross-segment screen projection device discovery are solved, and combined with dynamic policy control, it can play the role of controlling the permissions of specific devices such as screen projection.

[0056] The present application embodiment discloses a specific network communication method, see Figure 6 As shown, applied to a software defined network controller, the method includes:

[0057] Step S21: Obtain a first unicast message corresponding to the service request end and a second unicast message corresponding to the service response end; wherein, the first unicast message is a message sent by the service request end after converting the multicast message through the AC / AP, and the second unicast message is a message sent by the service response end after converting the multicast message through the AC / AP.

[0058] Step S22: Determine the current application scenario of the software-defined network controller; if the current application scenario is the first application scenario where there is a cross-network segment situation, control the AC to centrally forward the first unicast message and the second unicast message; if the current application scenario is the second application scenario where there is no cross-network segment situation, control the AP to locally forward the first unicast message and the second unicast message.

[0059] In the embodiment of the present application, the SDN controller is expanded to manage both wireless and wired scenarios. If there is no cross-segment situation in the home usage scenario, the local forwarding of the message can be achieved through the AP; if there is a cross-segment situation in the enterprise scenario, the centralized forwarding of the message can be achieved through the AC. In this way, in the specific implementation, the combination of AC / AP is regarded as centralized forwarding and local forwarding, so that the real-time anchor point of the message is different, but the basic logic and business flow are consistent. In this way, the integration of wired and wireless makes the entire scenario more universal. Figure 7 The figure shows the relationship between the SDN controller and the service request end / service response end in selecting AC / AP to implement message forwarding in different scenarios.

[0060] Step S23: parsing the first unicast message and the second unicast message by deep message inspection technology, and updating the available service list by using the data related to the service request end in the parsed first unicast message.

[0061] Step S24: matching the parsed second unicast message with the available service list according to a preset strategy, so that the service responder responds to the request of the service requester according to the matching result.

[0062] For more specific processing procedures of the above-mentioned step S21, step S23 and step S24, reference may be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be described in detail here.

[0063] In the present application, applied to a software-defined network controller, first, a first unicast message corresponding to a service request end and a second unicast message corresponding to a service response end are obtained; wherein, the first unicast message is a message sent by the service request end and obtained by converting a multicast message through an AC / AP, and the second unicast message is a message sent by the service response end and obtained by converting a multicast message through an AC / AP; then, the current application scenario of the software-defined network controller is determined; if the current application scenario is a first application scenario in which there is a cross-network segment situation, the AC is controlled to centrally forward the first unicast message and the second unicast message; if the current application scenario is a second application scenario in which there is no cross-network segment situation, the AP is controlled to locally forward the first unicast message and the second unicast message. The first unicast message and the second unicast message are parsed by deep message inspection technology, and the data related to the service request end in the parsed first unicast message is used to update the available service list; finally, the parsed second unicast message is matched with the available service list according to the preset strategy, so that the service responder responds to the request of the service requester according to the matching result. It can be seen that under the WLAN hierarchical networking architecture based on SDN, due to the effective separation of the control plane and the data plane, the broadcast data of the first unicast message corresponding to the service requester and the second unicast message corresponding to the service responder are reported to the SDN controller through the following AC / AP, so that the SDN controller can maintain the available service list updated based on the service requester and the service responder. Through the centralized device anchor point of AC / AP, the problem of multicast message discovery across network segments can be effectively solved; at the same time, the message initiated by the service responder is matched with the available service list according to the preset strategy on the SDN controller, which can flexibly control the discovery and connection strategies between network segments and devices. In this way, not only the problem of multicast messages crossing network segments is solved, but also the problem of multicast policy control is solved, and the problem of broadcast storm is effectively solved.

[0064] Correspondingly, the present application also discloses a network communication device, see Figure 8 As shown, the device comprises:

[0065] The message acquisition module 11 is used to acquire a first unicast message corresponding to the service request end and a second unicast message corresponding to the service response end; wherein the first unicast message is a message sent by the service request end after the AC / AP converts the multicast message, and the second unicast message is a message sent by the service response end after the AC / AP converts the multicast message;

[0066] A list updating module 12, configured to parse the first unicast message and the second unicast message by using a deep message inspection technology, and update the available service list by using the data related to the service request end in the parsed first unicast message;

[0067] The list matching module 13 is used to match the parsed second unicast message with the available service list according to a preset strategy, so that the service responder can respond to the request of the service requester according to the matching result.

[0068] Among them, for more specific working processes of the above-mentioned modules, please refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0069] It can be seen that, through the above-mentioned scheme of this embodiment, applied to the software-defined network controller, first, a first unicast message corresponding to the service request end and a second unicast message corresponding to the service response end are obtained; wherein, the first unicast message is a message sent by the service request end after converting the multicast message through the AC / AP, and the second unicast message is a message sent by the service response end after converting the multicast message through the AC / AP; then, the first unicast message and the second unicast message are parsed through deep message detection technology, and the data related to the service request end in the parsed first unicast message is used to update the available service list; finally, the parsed second unicast message is matched with the available service list according to a preset strategy, so that the service response end responds to the request of the service request end according to the matching result. It can be seen that under the WLAN hierarchical networking architecture based on SDN, since the control plane and the data plane are effectively separated, the broadcast data of the first unicast message corresponding to the service request end and the second unicast message corresponding to the service response end are reported to the SDN controller through the following AC / AP, so that the SDN controller can maintain the list of available services updated based on the service request end and the service response end. Through the centralized device anchor point of AC / AP, the problem of multicast message discovery across network segments can be effectively solved; at the same time, the message initiated by the service response end is matched with the list of available services on the SDN controller according to the preset strategy, and the discovery and connection strategy between network segments and devices can be flexibly controlled. In this way, not only the problem of multicast message across network segments is solved, but also the problem of multicast policy control is solved, and the problem of broadcast storm is effectively solved.

[0070] Furthermore, the present application also discloses an electronic device. Fig. 9 This is a structural diagram of an electronic device 20 according to an exemplary embodiment, and the content in the diagram cannot be considered as any limitation on the scope of use of the present application.

[0071] Fig. 9 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the network communication method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an SDN controller.

[0072] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0073] In addition, the memory 22 as a carrier for resource storage may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 221, a computer program 222 and data 223, etc. The data 223 may include various data. The storage method may be temporary storage or permanent storage.

[0074] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, and may be Windows Server, Netware, Unix, Linux, etc. In addition to computer programs that can be used to complete the network communication method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 may further include computer programs that can be used to complete other specific tasks.

[0075] Furthermore, the embodiment of the present application also discloses a computer-readable storage medium, wherein the computer-readable storage medium mentioned here includes a random access memory (Random Access Memory, RAM), a memory, a read-only memory (Read-Only Memory, ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a magnetic disk or an optical disk, or any other form of storage medium known in the technical field. Wherein, when the computer program is executed by the processor, the aforementioned network communication method is implemented. For the specific steps of the method, reference can be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0076] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0077] The steps of the network communication method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0078] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0079] The network communication method, device, equipment and storage medium provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A network communication method, characterized in that: Applied to software-defined network controllers, including: Obtain a first unicast message corresponding to the service request end and a second unicast message corresponding to the service response end; wherein the first unicast message is a message sent by the service request end after the multicast message is converted by the AC / AP, and the second unicast message is a message sent by the service response end after the multicast message is converted by the AC / AP; Parsing the first unicast message and the second unicast message by deep message inspection technology, and updating the available service list by using the data related to the service request end in the parsed first unicast message; The parsed second unicast message is matched with the available service list according to a preset strategy, so that the service responder responds to the request of the service requester according to the matching result; wherein the service requester can obtain a parameter list of a device to be connected, and the service responder can obtain a parameter list of a connected device.

2. The network communication method according to claim 1, characterized in that: The obtaining of the first unicast message corresponding to the service request end and the second unicast message corresponding to the service response end includes: Acquire a first unicast message obtained by converting the mdns multicast message sent by the service request end through the AC / AP and a second unicast message obtained by converting the mdns multicast message sent by the service responder through the AC / AP.

3. The network communication method according to claim 1, characterized in that: After obtaining the first unicast message corresponding to the service request end and the second unicast message corresponding to the service response end, the method further includes: Determining a current application scenario of the software defined network controller; If the current application scenario is the first application scenario with a cross-network segment situation, controlling the AC to centrally forward the first unicast message and the second unicast message; If the current application scenario is the second application scenario in which there is no cross-network segment situation, the AP is controlled to locally forward the first unicast message and the second unicast message.

4. The network communication method according to claim 1, characterized in that: The matching of the parsed second unicast message with the available service list according to a preset strategy so that the service responder responds to the request of the service requester according to the matching result includes: When the parsed second unicast message matches the available service list, the service responder forwards the message carrying the corresponding parameter list to the service requester, and the service requester forwards the message carrying the corresponding parameter list to the service responder, so that the service requester establishes a connection with the service responder.

5. The network communication method according to claim 1, characterized in that: Also includes: The data plane policy is used to monitor the layer 2 message forwarded by the AC / AP.

6. The network communication method according to any one of claims 1 to 5, characterized in that: The obtaining of the first unicast message corresponding to the service request end and the second unicast message corresponding to the service response end includes: A first unicast message corresponding to the service request end and a second unicast message corresponding to the service response end are obtained based on the OPENFLOW communication protocol.

7. A network communication device, characterized in that: Applied to software-defined network controllers, including: A message acquisition module, used to acquire a first unicast message corresponding to a service request end and a second unicast message corresponding to a service response end; wherein the first unicast message is a message sent by the service request end after converting a multicast message through an AC / AP, and the second unicast message is a message sent by the service response end after converting a multicast message through the AC / AP; A list updating module, configured to parse the first unicast message and the second unicast message by using a deep message inspection technology, and update the available service list by using the data related to the service request end in the parsed first unicast message; A list matching module is used to match the parsed second unicast message with the available service list according to a preset strategy, so that the service responder responds to the request of the service requester according to the matching result; wherein the service requester can obtain a parameter list of a device to be connected, and the service responder can obtain a parameter list of a connected device.

8. The network communication device according to claim 7, characterized in that: The message acquisition module includes: The communication unit is used to obtain a first unicast message corresponding to the service request end and a second unicast message corresponding to the service response end based on the OPENFLOW communication protocol.

9. An electronic device, characterized in that: The electronic device comprises a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the network communication method according to any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein the computer programs, when executed by a processor, implement the network communication method according to any one of claims 1 to 6.

Citation Information

Cited By

  • Local area network device discovery method, system, leaf switch and storage medium

    CN122741423A