Equipment discovery method based on switch and electronic equipment
By receiving discovery packets under the same port of the switch and generating a list of communication devices, a virtual LAN is established, which solves the problem of cumbersome switch port isolation configuration in the existing technology, realizes communication isolation between different ports of the switch, and improves data privacy and Security.
Patent Information
- Application Number
- CN202310258679.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-06
- Publication Date
- 2024-09-06
AI Technical Summary
When existing technology improves network security or privacy in a local area network, it is difficult to effectively implement communication isolation between devices through switch port isolation or virtual LAN function configuration, which is cumbersome and has high operation and maintenance costs.
Receive discovery packets under the same port of the switch, use the characteristics of the same source physical address and destination physical address to generate a communication device list and establish the same virtual LAN, thereby achieving communication isolation between different ports of the switch.
By generating a communication device list, devices on the same port of the switch can communicate with each other, but different ports cannot communicate, which improves data privacy and security and reduces operation and maintenance costs.
Smart Images

Figure CN118612166A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a device discovery method and electronic device based on a switch. Background Art
[0002] In a local area network, a device can discover all network devices in the local area network by receiving broadcast data packets. However, in the actual application of communication networks, network devices may not want to be discovered by other devices. In this case, some configurations need to be made to the network to improve the security or privacy of the network. Currently, network operation and maintenance personnel can configure the port isolation or virtual LAN function of the switch to configure the devices in the local area network so that the devices can only be discovered by devices that are allowed to communicate, and no data communication is performed between devices that are not allowed to communicate. However, this method is cumbersome to operate and has high operation and maintenance costs. Summary of the invention
[0003] The present application provides a device discovery method and electronic device based on a switch, which can increase the function of establishing the same virtual local area network for devices under the same port of the switch, thereby realizing communication isolation between different ports of the switch.
[0004] To solve the above technical problems, the first technical solution adopted in the present application is: to provide a switch-based device discovery method, the method comprising: receiving a discovery data packet at the same port of the switch; the source physical address and the destination physical address of the discovery data packet are the same, both pointing to the physical address of the network card corresponding to the device sending the discovery data packet; using the received discovery data packet to generate a communication device list, so that other devices in the communication device list can establish the same virtual local area network.
[0005] In order to solve the above technical problems, the second technical solution adopted in this application is: to provide an electronic device, which includes a communication circuit and a processing circuit; the communication circuit is used to communicate with an external electronic device; the processing circuit is coupled to the communication circuit, and is used to receive a discovery data packet through the communication circuit at the same port of the switch; the source physical address and the destination physical address of the discovery data packet are the same, and both point to the physical address of the network card corresponding to the device sending the discovery data packet; and is used to generate a communication device list using the received discovery data packet, so that the electronic devices in the communication device list can establish the same virtual local area network.
[0006] The beneficial effect of the present application is that: different from the prior art, the device receives the discovery data packet under the same port of the switch, and generates a communication device list using the received discovery data packet. Since the source physical address and the destination physical address of the discovery data packet are the same, both point to the physical address of the network card corresponding to the device sending the discovery data packet, the discovery data packet can be forwarded between devices under the same port, and the switch connected to the device will not forward the discovery data packet to the port of other switches so that the devices under other ports of the switch receive the discovery data packet, and therefore the device information in the communication device list is the device under the same port of the switch as the device, not the device connected to different ports of the switch. After the device generates the communication device list, the devices in the communication device list can establish the same virtual local area network, so that the devices under the same port of the switch can communicate with each other. And because the switch will not forward the discovery data packet to the port of other switches, the virtual local area networks established between different ports of the switch are different, thereby realizing the distinction or isolation between the switch ports, and then making it impossible for the devices between different ports of the switch to communicate data, and improving the data privacy under the same switch network. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Figure 1 This is a flow chart of the first embodiment of the device discovery method based on a switch of the present application;
[0008] Figure 2 This is a flow chart of the first embodiment of the device discovery method based on a switch of the present application;
[0009] Figure 3 It is a schematic structural block diagram of an embodiment of an electronic device of the present application;
[0010] Figure 4 It is a schematic structural block diagram of another embodiment of the electronic device of the present application. DETAILED DESCRIPTION
[0011] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0012] In a local area network, a device can discover all network devices in the local area network by receiving broadcast data packets. However, in the actual application of communication networks, network devices may not want to be discovered by other devices. At this time, some configurations need to be made to the network to improve the security or privacy of the network. After long-term research, the inventors of the present application have found that the devices in the local area network can be configured by network operation and maintenance personnel to configure the port isolation or virtual LAN function of the switch so that the devices are only discovered by devices that are allowed to communicate, and data communication is not performed between devices that are not allowed to communicate. However, this method is cumbersome to operate and has high operation and maintenance costs. In order to improve or solve the above problems, the present application proposes at least the following embodiments.
[0013] like Figure 1 and Figure 2 As shown, the first embodiment of the device discovery method based on the switch of the present application can be performed with the device as the execution subject, and the device discovery method described therein may include: S100: receiving a discovery data packet at the same port of the switch, wherein the source physical address and the destination physical address of the discovery data packet are the same, and both point to the physical address of the network card corresponding to the device sending the discovery data packet; S200: generating a communication device list using the received discovery data packet so that the devices in the communication device list can establish the same virtual local area network.
[0014] The device receives the discovery data packet under the same port of the switch, and generates a communication device list using the received discovery data packet. Since the source physical address and the destination physical address of the discovery data packet are the same, both pointing to the physical address of the network card corresponding to the device sending the discovery data packet, the discovery data packet can be forwarded between devices under the same port, and the switch connected to the device will not forward the discovery data packet to the port of other switches so that the devices under other ports of the switch receive the discovery data packet. Therefore, the device information in the communication device list is the device under the same port of the switch as the device, not the device connected to different ports of the switch. After the device generates the communication device list, the devices in the communication device list can establish the same virtual local area network, so that the devices under the same port of the switch can communicate with each other. And because the switch will not forward the discovery data packet to the port of other switches, the virtual local area networks established between different ports of the switch are different, thereby realizing the distinction or isolation between the switch ports, and then making it impossible for devices between different ports of the switch to communicate data, thereby improving the data privacy under the same switch network.
[0015] The following is a detailed description of the first embodiment of the switch-based device discovery method of the present application.
[0016] S100: receiving a discovery data packet at the same port of the switch, and discovering that the source physical address and the destination physical address of the data packet are the same, both pointing to the physical address of the network card corresponding to the device sending the discovery data packet.
[0017] In order to achieve communication isolation between devices, switches can be used to allow each device to establish a different virtual LAN.
[0018] The source physical address and destination physical address of the discovery data packet are the same, both pointing to the physical address of the network card corresponding to the device sending the discovery data packet, so that after the switch receives the discovery data packet, it can not forward the discovery data packet to other ports of the switch, so that the devices under other ports of the switch cannot receive the discovery data packet.
[0019] Optionally, the discovery data packet received by the device may be sent by the device itself, or may be sent by other devices under the same switch port. For details, see the following steps included in S100:
[0020] S110: Receive a discovery data packet from the device itself, and / or receive a discovery data packet sent from other devices under the same port of the switch.
[0021] For example, when communication isolation between two devices is required, a switch can be used to achieve the purpose. The two devices are connected to different ports of the switch respectively, and the discovery data packet received by the device under one port of the switch can be sent by itself.
[0022] For another example, when communication isolation needs to be achieved between at least three devices, at least two devices may be connected to the same port of the switch, and the discovery data packet received by the device may be sent by other devices under the same switch.
[0023] In this embodiment, communication is allowed between devices connected to the same port of the switch, that is, the device can be discovered by other devices on the same port. The device can discover other devices on the same switch port by forwarding discovery data packets. In the switch network of this embodiment, the device is a device with a function of forwarding data packets. The device can forward data packets and store forwarding tables. In one embodiment, the device can be a device with a switch chip to forward data packets. In another embodiment, the device can be a dual-port device with an independent network card to forward data packets. In this way, the device can communicate with the switch and with other devices.
[0024] Since the source physical address and destination physical address of the discovery data packets sent by other devices are the same and both point to the physical address of the network card of the other device, the switch will not forward the discovery data packets forwarded between devices to other ports of the switch when forwarding them to the switch.
[0025] Optionally, when the device needs to obtain device information of other devices under the same switch port, such as when restarting, the device can start the discovery service, that is, generate and forward a discovery data packet or receive a discovery data packet to obtain information of other devices.
[0026] Optionally, after receiving the discovery data packet, the device forwards the discovery data packet. For details, see the steps after S100:
[0027] S120: Forward the received discovery data packet from all the built-in ports of the device, so that each device can receive the discovery data packet sent by other devices under the same switch port.
[0028] In this embodiment, the device may be a device with a switch chip, so that the device can forward data packets, which also enables the device to forward data packets from its own ports. After the device receives a discovery data packet sent by other devices connected to the same switch port, the discovery data packet can be forwarded from all the device's own ports.
[0029] By receiving the discovery data packet and forwarding it, the device can receive the discovery data packets sent by all devices under the same port of the switch, and then the device can obtain the device information of all other devices under the same switch port, so that the devices under the same port of the switch can discover and communicate with each other.
[0030] Optionally, in order to discover other devices under the same switch port, the device may generate a discovery data packet with the same source physical address and destination physical address, and send the generated discovery data packet from all built-in ports of the device.
[0031] The source physical address and destination physical address of the discovery packet generated by the device are the same. When the device forwards the discovery packet to the switch, the switch will not forward the discovery packet to other ports of the switch because the source physical address and destination physical address of the discovery packet are the same. In this way, the devices under other ports of the switch will not receive the discovery packet. In other words, the devices under the same port of the switch will not receive the discovery packets sent by the devices under other ports of the switch.
[0032] Optionally, how to set the device so that the discovery data packet can be forwarded from all built-in ports of the device, for details, refer to the steps before S120:
[0033] S121: Configuring a hub or periodically deleting the physical address table stored inside the device, so that the discovery data packet can be sent out from all the built-in device ports of the device.
[0034] In order to enable the device to generate a discovery data packet or forward the discovery data packet from all the device's built-in ports after receiving the discovery data packet, the device can be configured as a hub or the physical address table stored in the device can be deleted periodically. When the device needs to discover other devices under the same switch port, such as when the device is restarted, the device can be configured as a hub or the physical address table stored in the device can be deleted periodically, so that the discovery data packet generated or received by the device can be forwarded from all the device's built-in ports, so that each device under the same switch port can be discovered, thereby enabling all devices under the same switch port to communicate data with each other.
[0035] Optionally, when the device is a dual-network-port device with an independent network card, it is not necessary to configure the device as a hub or to periodically delete the physical address table stored inside the device to achieve forwarding of data packets.
[0036] Optionally, the discovery data packet is sent to the switch via the device port of the device connected to the switch and the switch port, so that the switch discards or does not forward the discovery data packet, so that different switch ports are isolated from each other.
[0037] In this embodiment, regional isolation can be achieved by using a switch. For example, conference room A and conference room B were originally in the same virtual network, that is, the devices between conference room A and conference room B can communicate with each other. At this time, if you do not want to allow the devices in conference room A and conference room B to communicate with each other, you can use a switch to isolate the communication between conference room A and conference room B. For example, conference room A and conference room B can be connected to different ports of the switch respectively. Since the switch will discard the discovery data packet or not forward the discovery data packet, the devices in conference room A or conference room B can discover the devices in the same conference room through the discovery data packet, but will not discover the devices in other conference rooms, so as to achieve isolation between different switch ports.
[0038] In this embodiment, at least one device is directly connected to the port of the switch. Other devices can be directly connected to the switch port, or connected to the device. In this way, when each device in the network receives the discovery data packet and forwards it again, the discovery data packet will be forwarded to the port of the switch. Since the source physical address and the destination physical address of the discovery data packet are the same, the switch will not forward the discovery data packet even if it receives the discovery data packet. That is to say, except that the devices under the same port can receive and forward the discovery data packet, the devices under other ports of the switch will not receive the discovery data packet and will not be discovered. In this way, the other devices in the communication device list generated by the device are all devices under the same switch port as the device. By receiving the discovery data packet sent by other devices under the same switch port, the devices under the same port of the switch can discover each other, and since the source physical address and the destination physical address of the discovery data packet are the same, both point to the physical address of the network card corresponding to the source device sending the data packet, so that the discovery data packet will not be forwarded to other ports of the switch, so that the device will not discover the devices under other ports, only discover the devices under the same port, and then the device can communicate with the devices under the same switch port, and cannot communicate with the devices under other ports, thereby realizing the isolation of the switch port and improving the privacy and security of data transmission.
[0039] S200: Generate a communication device list using the received discovery data packet to establish the same virtual local area network with other devices in the communication device list.
[0040] After receiving a discovery data packet sent by other devices, the device can parse the discovery data packet, obtain the device information of other devices, and save the device information to the communication device list of the device. In addition, the device can also establish the same virtual local area network with other devices in the communication device list to facilitate data communication between the device and other devices in the communication device list. Moreover, the device is allowed to communicate with other devices in the same virtual local area network, which can improve the security and privacy of data communication between devices.
[0041] Optionally, before the device generates a communication device list using the discovery data packet, the data packet may be parsed to determine whether the information obtained from the discovery data packet is correct. For details, see the steps included before S200:
[0042] S210: Determine whether the received discovery data packet changes within a preset time period.
[0043] Since the device sending the discovery data packet may be unstable, the discovery data packet received by the device may change within a certain period of time. At this time, the data of the communication device list generated by the device using the received discovery data packet may be inaccurate. Therefore, after the device receives the discovery data packet, it needs to determine whether the discovery data packet has changed within a preset time length. For example, within one second after the device receives the discovery data packet, it first determines whether the discovery data packet has changed.
[0044] Optionally, how the device makes a judgment after receiving the discovery data packet may refer to the steps included after S210:
[0045] S211: If the discovery data packet changes within the preset time period, return to execute determination as to whether the received discovery data packet changes within the preset time period.
[0046] If the discovery data packet received by the device keeps changing, the device can continue to receive the discovery data packet and determine whether the discovery data packet has changed within a preset time period until the received discovery data packet does not change, so as to avoid the device parsing incorrect data information from the discovery data packet that is still changing.
[0047] S220: If the discovery data packet does not change within a preset time period, parse the discovery data packet to obtain device information of other devices in the discovery data packet.
[0048] If the device receives the discovery data packet and determines that the discovery data packet has not changed within a preset time, the device can parse the discovery data packet, thereby obtaining device information of other devices from the discovery data packet.
[0049] By judging whether the received discovery data packet still changes within a preset time, the information in the communication device list stored in the switching terminal is correct, so that the switching terminal can perform data communication with other devices.
[0050] Optionally, the device may generate a communication device list using the device-related information in the received discovery data packet, and then establish the same virtual local area network with other devices in the communication device list, for details, see the steps included in S200:
[0051] S230: Generate a communication device list using the acquired device information.
[0052] The device can use the communication device list to communicate with the devices that can communicate. The device can obtain the source device information of the discovery data packet by parsing the received discovery data packet, that is, other devices in the same local area network as the device, and then generate a communication device list using the obtained device information.
[0053] By generating a communication device list, the device can store device information of other devices under the same switch port, so that the device can communicate with all devices in the communication device list, and can view the devices that can communicate by querying the communication device list.
[0054] Optionally, in order to join the same virtual local area network with other terminals in the communication device list, the device can use the received discovery data packet to generate a device network identifier that can communicate with other devices in the same virtual local area network, as shown in the steps included in S200:
[0055] S240: Generate a device network identifier corresponding to the same virtual local area network.
[0056] After receiving the discovery data packet and parsing the data information in the data packet, the device can automatically generate a device network identifier corresponding to the same virtual local area network, thereby enabling the device to communicate data with other devices in the same virtual local area network. Optionally, information related to the device network identifier can be stored in the discovery data packet, so that the device can generate a device network identifier corresponding to the virtual local area network where other devices are located after receiving the discovery data packet. For example, the device joins the virtual local area network VLAN1 together with other devices in the communication device list, and the device can generate a device network identifier corresponding to the virtual local area network VLAN1, so that it can communicate with devices under VLAN1.
[0057] In this embodiment, the device can start the discovery service to communicate with other devices under the same switch port, that is, it can generate a discovery data packet and forward and receive the discovery data packet. After the device has used the discovery data packet to generate a communication device list and a device network identifier corresponding to the same virtual local area network, it can exit the discovery service to avoid sending a discovery data packet in the local area network to occupy the communication channel in the local area network and affect the data transmission efficiency in the local area network.
[0058] S250: configuring a device network identifier; the device network identifiers of the virtual local area networks corresponding to different switch ports are different, so that different ports of the switch are isolated from each other.
[0059] After the devices under the same virtual LAN generate device network identifiers corresponding to the same virtual LAN, the device network identifiers can be configured to the device's own network card, so that the devices under the same switch port can be in the same virtual LAN, so that the device network identifiers of the virtual LANs corresponding to different switch ports are different, and the devices under different switch ports cannot communicate with each other, so that different switch ports are isolated from each other.
[0060] For example, the device is added to the virtual local area network VLAN1 together with other devices in the communication device list, and the switch port to which the device is connected is also configured accordingly so that data packets sent to the device under the virtual local area network VLAN1 can be forwarded through the port.
[0061] Optionally, in order to enable devices in the same virtual local area network to perform data communication, the device may establish a data communication channel with the devices in the communication device list, for details, see the steps included after S200:
[0062] S260: Establishing a data communication channel for communicating in the same virtual local area network, so that data communication is performed between devices in the same virtual local area network.
[0063] For example, in a conference room scenario, all conference room networks are connected to the same switch, and data communication is not allowed between different conference rooms to avoid conference information leakage. After restarting, the devices in Conference Room A can use the discovery data packet to identify the devices under the same port of the switch, record the device list and configure it. The configuration methods include but are not limited to VLAN, switch port isolation, etc., and then all devices in Conference Room A can establish data channels. The network of Conference Room B connected to another port of the switch is isolated from the network of Conference Room A, so the information transmitted between the devices in Conference Room B will not be discovered by the devices in Conference Room A.
[0064] like Figure 3 As shown, the electronic device 100 described in the electronic device embodiment of the present application may include a processing circuit 110 and a communication circuit 120. The communication circuit 120 can be used to communicate with an external electronic device. The processing circuit 110 is coupled to the communication circuit 120, and is used to receive a discovery data packet at the same port of the switch through the communication circuit 120, and the source physical address and the destination physical address of the discovery data packet are the same, both pointing to the physical address of the network card corresponding to the device sending the discovery data packet; it is also used to generate a communication device list using the received discovery data packet, so that the electronic devices 100 in the communication device list can establish the same virtual local area network.
[0065] For a detailed description of the functions and execution processes of each functional module or component in the electronic device embodiment of the present application, reference can be made to the description in the above-mentioned device discovery method embodiment based on the switch of the present application, which will not be repeated here.
[0066] like Figure 4 As shown, the electronic device 100 described in the electronic device embodiment of the present application may also include a processor 210, a memory 220 and a communication circuit 230.
[0067] The memory 220 is used to store computer programs, and may be a RAM (Read-Only Memory), a ROM (Random Access Memory), or other types of storage devices. Specifically, the memory may include one or more computer-readable storage media, which may be non-transitory. The memory may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory is used to store at least one program code.
[0068] The processor 210 is used to control the operation of the electronic device 100. The processor 210 may also be referred to as a CPU (Central Processing Unit). The processor 210 may be an integrated circuit chip having signal processing capabilities. The processor 210 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor or the processor 210 may also be any conventional processor, etc.
[0069] The processor 210 is used to execute the computer program stored in the memory 220 to implement the switch-based device discovery method described in the embodiment of the switch-based device discovery method of the present application.
[0070] The electronic device 100 may further include a communication circuit 230 , which is a connecting device or circuit used by the electronic device 100 to communicate with external devices, so that the processor 210 can exchange data with external devices via the communication circuit 230 .
[0071] For the detailed description of the functions and execution processes of each functional module or component in the electronic device embodiment of the present application, reference can be made to the description in the above-mentioned embodiment of the device discovery method based on the switch of the present application, and no further details will be given here. In the several embodiments provided in the present application, it should be understood that the disclosed electronic device 100 and the device discovery method based on the switch can be implemented in other ways. For example, the various embodiments of the electronic device 100 described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0072] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0073] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0074] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A device discovery method based on a switch, characterized in that: include: Receive discovery packets on the same port of the switch; The source physical address and the destination physical address of the discovery data packet are the same, both pointing to the physical address of the network card corresponding to the device sending the discovery data packet; A communication device list is generated using the received discovery data packet, so that the devices in the communication device list can establish a same virtual local area network.
2. The method according to claim 1, characterized in that The receiving of the discovery data packet at the same port of the switch includes: Receive the discovery data packet from the device itself; and / or receive the discovery data packet sent from other devices under the same port of the switch.
3. The method according to claim 2, characterized in that After receiving the discovery data packet sent by other devices under the same port of the switch, the method further comprises: The received discovery data packets are forwarded from all the ports of the device, so that each device can receive the discovery data packets sent by other devices under the same switch port.
4. The method according to claim 1, characterized in that: The method further comprises: Generate the discovery data packet with the same source physical address and destination physical address, and send the generated discovery data packet from all built-in ports of the device.
5. The method according to claim 3 or 4, characterized in that: Before forwarding the received discovery data packet from all the built-in ports of the device, or before sending the generated discovery data packet from all the built-in ports of the device, the method further comprises: The device is configured as a hub or the physical address table stored in the device is deleted periodically so that the discovery data packet can be sent out from all the built-in device ports of the device.
6. The method according to claim 1, characterized in that The method further comprises: The discovery data packet is sent to the switch via the device port of the device connected to the switch and the switch port, so that the switch discards or does not forward the discovery data packet, so that different ports of the switch are isolated from each other.
7. The method according to claim 1, characterized in that Before generating a communication device list using the received discovery data packet, the method includes: Determining whether the received discovery data packet changes within a preset time period; If the discovery data packet does not change within the preset time period, parsing the discovery data packet to obtain device information of other devices in the discovery data packet; The generating a communication device list by using the received discovery data packet comprises: The communication device list is generated using the acquired device information.
8. The method according to claim 7, characterized in that After determining whether the received discovery data packet changes within a preset time period, the method further includes: If the discovery data packet changes within the preset time period, the process returns to execute the determination of whether the received discovery data packet changes within the preset time period.
9. The method according to claim 1, characterized in that: The step of generating a communication device list by using the received discovery data packet so that the devices in the communication device list can establish the same virtual local area network comprises: Generating a device network identifier corresponding to the same virtual local area network; The device network identifier is configured; the device network identifiers of the virtual local area networks corresponding to different switch ports are different, so that different switch ports are isolated from each other.
10. The method according to claim 1, characterized in that After generating a communication device list by using the received discovery data packet so that the devices in the communication device list can establish the same virtual local area network, the method includes: A data communication channel for communicating in the same virtual local area network is established, so that data communication is performed between the devices in the same virtual local area network.
11. An electronic device, characterized in that: include: A communication circuit, used for communicating with external electronic equipment; A processing circuit coupled to the communication circuit, configured to receive a discovery data packet through the communication circuit at the same port of the switch; the source physical address and the destination physical address of the discovery data packet are the same, both pointing to the physical address of the network card corresponding to the device sending the discovery data packet; Used to generate a communication device list using the received discovery data packet, so that the electronic devices in the communication device list can establish the same virtual local area network.
