Network configuration method, terminal, system and storage medium

By using untagged untagged interfaces in the virtual LAN VLAN system for communication, the problems of equipment resource occupation and system stability in the prior art are solved, and more efficient communication and a more stable system are achieved.

CN114205236BActive Publication Date: 2025-04-08ZTE CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010989901.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-18
Publication Date
2025-04-08
Estimated Expiration
2040-09-18

AI Technical Summary

Technical Problem

The existing virtual LAN VLAN system is configured by tagging, resulting in an increase in device resource usage and a decrease in system stability.

Method used

The untagged untagged interface is used for communication, reducing the resource requirements of the device, and implementing adaptive configuration through virtual LAN VLAN transmission between master and slave devices.

Benefits of technology

It improves the communication efficiency of virtual LAN VLAN, enhances the stability of the system, and simplifies the network architecture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114205236B_ABST
    Figure CN114205236B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a network configuration method, terminal, system and storage medium, which receive first configuration information from the first device; set the virtual local area network VLAN information of the second device according to the first configuration information, and obtain second configuration information; the first device establishes a communication connection with the second device through an untagged port. It can realize the virtual local area network VLAN transmission between the master and slave devices, and the slave device can perform adaptive configuration of the virtual local area network VLAN according to the information obtained from the master device, simplifying the network architecture of the virtual local area network VLAN, improving the stability of the system and greatly simplifying the configuration of complex networks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a virtual local area network (VLAN), and in particular to a network configuration method, a terminal, a system and a storage medium. Background Art

[0002] VLAN is a broadcast domain segmentation technology based on Layer 2 switches. It can be used to group network users according to their location, role, department, or the applications and protocols used by network users, thereby increasing the freedom of network design. According to the 802.1Q protocol (dot1q) released by the Institute of Electrical and Electronics Engineers (IEEE), multiple bridges are allowed to share the same physical network without leaking information.

[0003] With the continuous development of wireless technology and the continuous improvement of wireless network speed, smart devices are becoming more and more popular. Due to the continuous increase in access devices, virtual local area network (VLAN) is becoming more and more popular because it can segment the network according to user needs without being restricted by the physical location of network users.

[0004] At present, VLAN realizes the access and switching of access devices through the unique ID of VLAN in VLAN Tagging. Access devices need to monitor the unique ID of VLAN in each data message, which will occupy the resources of the device and affect the performance of the device; a large number of messages need to be sent in the VLAN system, which reduces the stability of the VLAN system. Summary of the invention

[0005] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.

[0006] The embodiments of the present application provide a network configuration method, terminal, system and storage medium, which can communicate through untagged interfaces, reduce the requirements for devices, improve the communication efficiency of virtual local area networks (VLANs), and improve the stability of virtual local area networks (VLANs) systems.

[0007] In a first aspect, an embodiment of the present application provides a network configuration method, which is applied to a first device, wherein the first device is communicatively connected with a second device, including: obtaining first configuration information of a virtual local area network VLAN; sending the first configuration information to the second device; and the first device and the second device establish a communication connection in a manner including through an untagged interface.

[0008] In a second aspect, an embodiment of the present application provides a network configuration method, which is applied to a second device, where the second device is communicatively connected to a first device, including: obtaining first configuration information from the first device; setting the virtual local area network (VLAN) information of the second device according to the first configuration information, and obtaining second configuration information; the first device and the second device establish a communication connection including through an untagged link.

[0009] In a third aspect, an embodiment of the present application provides a network configuration method, which is applied to a first device and a second device in a communication connection, including: the first device obtains first configuration information of a virtual local area network VLAN; the first device sends the first configuration information to the second device; the second device sets the virtual local area network VLAN information of the second device according to the first configuration information; the second device obtains second configuration information according to the virtual local area network VLAN information of the second device; the second device sends the second configuration information to the first device; the first device establishes a communication connection with the second device through an untagged port.

[0010] In a fourth aspect, an embodiment of the present application provides a terminal that is communicatively connected to a second terminal, including: an information acquisition module for acquiring first configuration information of a virtual local area network VLAN; an information sending module for sending the first configuration information to a second device; and a communication module for establishing a communication connection with the second terminal through an untagged interface.

[0011] In a fifth aspect, an embodiment of the present application provides a terminal, which is communicatively connected to a first terminal, and includes: an information acquisition module, used to obtain first configuration information of a virtual local area network VLAN from the first terminal; a network configuration module, used to set the virtual local area network VLAN information according to the first configuration information, and obtain second configuration information; a communication module, used to establish a communication connection with the first terminal through an untagged interface.

[0012] In a sixth aspect, an embodiment of the present application provides a network configuration system, characterized in that it comprises: at least one first terminal as described in the third aspect; and at least one second terminal as described in the fourth aspect; the first terminal is communicatively connected with the second terminal.

[0013] In the seventh aspect, an embodiment of the present application provides a computer-readable storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the network configuration method described in the first aspect; or, the network configuration method described in the second aspect; or, the network configuration method described in the third aspect.

[0014] The embodiment of the present application is based on the virtual local area network VLAN, which can realize the virtual local area network VLAN transmission between the master and slave devices. The slave device can perform adaptive configuration of the virtual local area network VLAN according to the information obtained from the master device, thereby simplifying the network architecture of the virtual local area network VLAN and improving the stability of the system.

[0015] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a flowchart of a network configuration method provided by an embodiment of the present application;

[0017] Figure 2 is a flowchart of a network configuration method provided by another embodiment of the present application;

[0018] Figure 3 is a flowchart of a network configuration method provided by another embodiment of the present application;

[0019] Figure 4 is a flowchart of a conflict detection method provided by an embodiment of the present application;

[0020] Figure 5 It is a flowchart of an information collection method provided by an embodiment of the present application;

[0021] Figure 6 It is a flowchart of a method for transmitting network configuration information provided by an embodiment of the present application;

[0022] Figure 7 is a schematic diagram of the operation flow of the second device provided in one embodiment of the present application;

[0023] Figure 8 It is a schematic diagram of the working process of the first device provided in one embodiment of the present application;

[0024] Fig. 9 It is a schematic diagram of a network configuration architecture provided in an embodiment of the present application.

[0025] Reference numerals:

[0026] Internet 100; network access device 200; user access device 300; first access device 401; second access device 402; third access device 403. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0028] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0029] A local area network (LAN) can be a network consisting of a few home computers or an enterprise network consisting of hundreds of computers. The LAN referred to in the virtual local area network (VLAN) specifically refers to a network divided by a router, that is, a broadcast domain. A broadcast domain refers to the range to which a broadcast frame (all destination MAC addresses are 1) can be transmitted, that is, the range that can communicate directly. A layer 2 switch can only build a single broadcast domain. After using the virtual local area network (VLAN) function, it can divide the network into multiple broadcast domains. If there is only one broadcast domain, after the switch receives a broadcast frame, it will forward it to all ports except the receiving port. At this time, there may be only one port that needs to obtain the broadcast information, but the data frame is transmitted throughout the entire network. Therefore, the broadcast information consumes the overall bandwidth of the network, and the computer that receives the broadcast information also consumes part of the CPU time to process it. This causes a lot of unnecessary consumption of network bandwidth and CPU computing power. Using virtual local area network VLAN to divide multiple broadcast domains can improve the overall transmission performance of the network.

[0030] At present, VLAN is configured by using tagged data frames. The change in the structure of tagged packets is that 4 bytes of VLAN information, namely, VLAN tag header, are added after the source MAC address and the destination MAC address. Such packets need to be received by specific equipment, which will increase the requirements for VLAN equipment and increase the complexity of the system.

[0031] The technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described below are only some embodiments of the present invention, not all embodiments.

[0032] Figure 1 FIG. 1 is a flow chart of a network configuration method provided by an embodiment of the present application. Figure 1 The network configuration method shown includes at least the following steps: S101: receiving first configuration information from a first device; S102: setting virtual local area network (VLAN) information of a second device according to the first configuration information; S103: generating second configuration information.

[0033] S101: Receive first configuration information from a first device.

[0034] In some embodiments, the second device receives first configuration information from the first device. The first configuration information includes virtual local area network (VLAN) information.

[0035] S102: Setting virtual local area network (VLAN) information of the second device according to the first configuration information.

[0036] In some embodiments, the second device sets the virtual local area network (VLAN) information of the second device according to the first configuration information.

[0037] S103: Generate second configuration information.

[0038] In some embodiments, the second device generates the second configuration information according to its own virtual local area network VLAN information.

[0039] In some embodiments, the first configuration information includes at least one of the following information: virtual local area network unique number VLANID, Internet Protocol (IP) subnet information, access point name (APN) information, and port type information.

[0040] In some embodiments, the method of obtaining the first configuration information from the first device includes at least one of receiving a socket and receiving a file.

[0041] In some embodiments, the network configuration method further includes at least one of the following information: sending second configuration information to the first device, the second configuration information including the virtual local area network unique number VLANID, Internet protocol IP subnet information, and access point name APN information.

[0042] Figure 2 FIG. 1 is a flow chart of a network configuration method provided by another embodiment of the present application. Figure 2The network configuration method shown includes at least the following steps: S201: obtaining first configuration information of virtual local area network VLAN information; S202: sending the first configuration information to the second device.

[0043] S201: Acquire first configuration information of virtual local area network (VLAN) information.

[0044] In some embodiments, the first device obtains first configuration information from virtual local area network (VLAN) information.

[0045] S202: Send first configuration information to the second device.

[0046] In some embodiments, the first device sends first configuration information to the second device.

[0047] In some embodiments, the first configuration information includes at least one of the following information: virtual local area network unique number VLANID, Internet protocol IP subnet information, access point name APN information, and port type information.

[0048] In some embodiments, the method of sending the first configuration information to the second device includes at least one of sending a socket and sending a file.

[0049] In some embodiments, the network configuration method further includes: acquiring second configuration information from a second device.

[0050] In some embodiments, the network configuration method further includes: detecting whether the first configuration information conflicts with the second configuration information according to the second configuration information; if not, ending the process; if conflicting, executing a conflict avoidance method.

[0051] In some embodiments, the conflict avoidance method includes: resetting the subnet address; and reconfiguring the subnet of the first device.

[0052] Figure 3 FIG. 1 is a flow chart of a network configuration method provided by another embodiment of the present application. Figure 3 The network configuration method shown includes at least the following steps: S301: the first device and the second device are synchronized; S302: the first device and the second device establish a communication link; S303: the first device and the second device confirm the VLAN information transmission method; S304: the first device obtains the VLAN information and sends it to the second device; S305: the second device configures its own VLAN information according to the VLAN information.

[0053] S301: The first device and the second device are synchronized.

[0054] In some embodiments, the first device and the second device are set to a virtual local area network VLAN synchronization mode and connected to corresponding ports. The device that has completed the virtual local area network VLAN configuration is set as the sender of the virtual local area network VLAN configuration information and is set as the first device; the receiver of the virtual local area network VLAN information is set as the second device. The first device and the second device are only named when the virtual local area network VLAN information is configured.

[0055] S302: The first device and the second device establish a communication link.

[0056] In some embodiments, the first device and the second device establish a communication link. The connection can be made using DHCP. The first device and the second device start the DHCPD and DHCPC processes respectively. When the two network ports that are connected when the two devices are normally used are connected using a network cable, the first device and the second device use the default untagged link to establish a communication link through DHCP. When the communication link is established, the second device detects the subnet of the first device and its own subnet, and if a conflict is detected, further conflict avoidance processing is required.

[0057] S303: The first device and the second device confirm the VLAN information transmission mode.

[0058] In some embodiments, the first device and the second device confirm the VLAN information transmission method. The virtual local area network VLAN information includes: VLAN ID, IP subnet information corresponding to the network card, bound APN information and port type (Route / Bridge). The transmission method of the virtual local area network VLAN information includes socket mode and file form.

[0059] S304: The first device obtains VLAN information and sends it to the second device.

[0060] In some embodiments, the first device obtains virtual local area network VLAN information and sends it to the second device. The first device collects virtual local area network VLAN configuration information of the corresponding network port and sends it to the second device in a form negotiated by the first device and the second device. The network port from which the first device collects virtual local area network VLAN information is the network port of the currently connected device. The configuration process of the virtual local area network VLAN information is based on the virtual local area network VLAN configuration information of the port corresponding to the network port, and scans the address and routing information related to the logical network port corresponding to the virtual local area network VLAN.

[0061] S305: The second device configures its own VLAN information according to the VLAN information.

[0062] In some embodiments, the second device configures its own VLAN information according to the VLAN information. The configuration of the virtual local area network VLAN includes: establishing a virtual local area network VLAN logical network card, configuring the logical network card IP address, establishing an uplink APN link, and adding a route.

[0063] Figure 4 FIG. 1 is a flow chart of a conflict detection method provided by an embodiment of the present application. Figure 4 The conflict detection method shown includes at least the following steps: S401: start the timer; S402: the second device sends a DHCP message to the first device; S403: whether the timer times out; S404: whether the second device receives the DHCP message; S405: resolve the subnet and gateway of the first device; S406: whether the gateways are the same; S407: whether the subnets overlap; S408: start address conflict avoidance; S409: end the process.

[0064] S401: Start the timer.

[0065] In some embodiments, the conflict detection method is based on timing detection.

[0066] S402: The second device sends a DHCP message to the first device.

[0067] In some embodiments, the second device sends a DHCP Discovery message to the first device to request allocation of an IP address.

[0068] S403: Check whether the timer has timed out.

[0069] In some embodiments, it is detected whether the timer has timed out. If not, step S405 is performed; otherwise, step S409 is performed.

[0070] S404: Whether the second device receives the DHCP message.

[0071] In some embodiments, it is detected whether the second device has received the DHCP Offer message sent by the first device. If yes, step S405 is performed, and if no, the process returns to step S402 to continue sending the DHCP Discovery request message.

[0072] S405: Analyze the subnet and gateway of the first device.

[0073] In some embodiments, the second device parses the gateway and subnet address information of the first device from the received DHCP Offer message.

[0074] S406: Are the gateways the same?

[0075] In some embodiments, the second device detects whether the gateway address of its own device is the same as the gateway address of the first device. If they are the same, proceed to step S408; if they are not the same, proceed to step S407.

[0076] S407: Whether the subnets overlap.

[0077] In some embodiments, the second device detects whether its own subnet address coincides with the subnet address of the first device. If so, proceed to step S408; if not, proceed to step S409.

[0078] S408: Start address conflict avoidance.

[0079] In some embodiments, address conflict avoidance is enabled and the gateway and subnet address configuration of the second device is modified.

[0080] S409: End the process.

[0081] In some embodiments, the conflict detection process ends.

[0082] Figure 5 FIG. 1 is a flow chart of an information collection method provided by an embodiment of the present application. Figure 5 The information collection method shown includes at least the following steps: S501: the first device starts VLAN information collection; S502: obtains port information; S503: obtains port VLAN ID and tag; S504: whether the port is tagged under VLAN; S505: obtains the network port corresponding to the VLANID; S506: obtains the IP address corresponding to the network port; S507: obtains VLAN ID binding information; S508: the first device produces a VLAN information file.

[0083] S501: The first device starts collecting VLAN information.

[0084] In some embodiments, the first device enables virtual local area network VLAN information collection.

[0085] S502: Obtain port information.

[0086] In some embodiments, the first device obtains information about a port into which a network cable is currently inserted and which is functioning normally.

[0087] S503: Obtain the port VLAN ID and label.

[0088] In some embodiments, the first device obtains all virtual local area network (VLAN) configuration information of the current device, and parses the virtual local area network (VLAN) configuration including all VLAN ID information of the port obtained in step S502, and the tag status of the port in the virtual local area network (VLAN) configuration item, i.e., tagged or untagged.

[0089] S504: Whether the port is tagged in the VLAN.

[0090] In some embodiments, the first device determines whether a port attribute of the port in the virtual local area network (VLAN) configuration information is tagged.

[0091] S505: Obtain the network port corresponding to the VLAN ID.

[0092] In some embodiments, the first device obtains the network port name corresponding to the corresponding VLAN ID from the system virtual local area network VLAN configuration information, and the method of obtaining the network port name includes obtaining the network port name from information such as proc, net, vlan and config.

[0093] S506: Obtain the IP address corresponding to the network port.

[0094] In some embodiments, the network port name is obtained by parsing the ifconfig command, or the IP address information set for the network port is obtained by other means.

[0095] S507: Obtain VLAN ID binding information.

[0096] In some embodiments, bound APN information is obtained according to the VlAN ID.

[0097] S508: The first device generates a VLAN information file.

[0098] In some embodiments, the first device generates a virtual local area network (VLAN) information file.

[0099] Figure 6 FIG. 1 is a flow chart of a method for transmitting network configuration information provided by an embodiment of the present application. Figure 6 The network configuration information transmission method shown includes at least the following steps: S601: the second device selects a readable and writable path and sends it to the first device; S602: the first device obtains the readable and writable path sent by the second device; S603: the first device sends a file with the same name according to the readable and writable path; S604: the second device obtains the readable and writable path of the first device; S605: the second device sends the format of the VLAN information to be obtained to the first device; S606: the first device sends the VLAN configuration file to the second device; S607: the second device performs adaptive configuration.

[0100] S601: The second device selects a readable and writable path and sends it to the first device.

[0101] In some embodiments, the second device selects a writable path, writes the path and the expected receiving file name into a file with the same name, and attempts to send the file to the same directory of the first device.

[0102] S602: The first device obtains the readable and writable path sent by the second device.

[0103] In some embodiments, the first device detects through the tftpd process to obtain the file name and storage path that the second device expects to receive.

[0104] S603: The first device sends the file with the same name according to the readable and writable path.

[0105] In some embodiments, the first device selects a writable directory and writes the directory to a file with the same name sent by the second device, and then sends it to the directory requested by the second device.

[0106] S604: The second device obtains a readable and writable path of the first device.

[0107] In some embodiments, the second device detects the file pushed by the first device, performs parsing, and obtains a writable directory of the first device.

[0108] S605: The second device sends the format of the VLAN information to be obtained to the first device.

[0109] In some embodiments, the second device writes the format of the virtual local area network VLAN information to be obtained into a file with the same name as the virtual local area network VLAN configuration to be obtained, and sends the file to the first device.

[0110] S606: The first device sends the VLAN configuration file to the second device.

[0111] In some embodiments, the first device obtains the virtual local area network VLAN configuration format file sent by the second device, parses and sends the virtual local area network VLAN configuration file to the second device according to the file format.

[0112] S607: The second device performs adaptive configuration.

[0113] In some embodiments, the second device receives the virtual local area network VLAN configuration file sent by the first device, parses the file and performs adaptive configuration. The adaptive configuration of the virtual local area network VLAN includes: establishing a virtual local area network VLAN logical network port, configuring the logical network port IP address, establishing an uplink APN link and adding a route.

[0114] Figure 7 1 is a schematic diagram of the operation flow of the second device provided in an embodiment of the present application. Figure 7 The second device workflow shown includes at least the following steps: S701: set to the second device mode; S702: start UDHCPC or TFTPD; S703: start the timing mechanism; S704: whether to obtain an IP address; S705: send a writable directory file to the first device; S706: whether a response from the first device is received; S707: send the required VLAN information to the first device; S708: whether a response from the first device is received; S709 configure VLAN according to the received VLAN information; S710: whether timeout; S711: wait for a response; S712: feedback the configuration status result.

[0115] S701: Set to the second device mode.

[0116] In some embodiments, the device is set to a second device mode.

[0117] S702: Start UDHCPC or TFTPD.

[0118] In some embodiments, the second device starts the UDHCPC and TFTPD processes. The UDHCPC process is used to establish a communication connection for allocating an IP address to the second device. For the upstream access device, the UDHCPC selects the LAN port to be accessed by the downstream device, and the downstream access device selects the upstream WAN port as the bound network card. The TFTPD process is used for file transfer. S703: Start the timing mechanism.

[0119] S703: Start the timing mechanism.

[0120] In some embodiments, a timing mechanism is started to prevent the device from being in a waiting state under abnormal circumstances. If the timer expires, information indicating that the VLAN information synchronization has failed is fed back.

[0121] S704: Whether to obtain an IP address.

[0122] In some embodiments, it is determined whether to obtain an IP address. When the second device starts the UDHCPC process and the network port is connected, it initiates a DHCP process to the first device to obtain an IP address and establishes a communication connection. If the second device receives the IP address sent by the first device, it proceeds to step S706, otherwise it proceeds to step S705 to determine whether the timer has timed out. If not, it remains in the listening state.

[0123] S705: Send a writable directory file to the first device.

[0124] In some embodiments, the second device sends a writable directory file to the first device via a TFTP command. The file name is set to the file name that the second device expects the first device to feedback. The file includes the writable path and file name of the file that the second device expects to receive.

[0125] S706: Whether a response from the first device is received.

[0126] In some embodiments, the second device determines whether it has received the corresponding information from the first device. If so, it proceeds to step S709; if not, it proceeds to step S711.

[0127] S707: Send required VLAN information to the first device.

[0128] In some embodiments, the second device sends the required virtual local area network VLAN information to the first device.

[0129] S708: Whether a response from the first device is received.

[0130] In some embodiments, the second device determines whether it has received the corresponding information from the first device. If so, it proceeds to step S709; if not, it proceeds to step S711.

[0131] S709: Configure VLAN according to the received VLAN information.

[0132] In some embodiments, the second device configures the virtual local area network VLAN using the received virtual local area network VLAN information.

[0133] S710: Timeout.

[0134] In some embodiments, the second device determines whether it has timed out, and if so, proceeds to step S712.

[0135] S711: Waiting for response.

[0136] In some embodiments, the first device is waiting for response information fed back.

[0137] S712: Feedback configuration status result.

[0138] In some embodiments, the configuration status result is fed back. If successful, the configuration is successful; if unsuccessful, the configuration is failed.

[0139] Figure 8 1 is a schematic diagram of the operation flow of the first device provided in an embodiment of the present application. Figure 8The second device workflow shown includes at least the following steps: S801: set to the first device mode; S802: start UDHCPC or TFTPD; S803: start the timing mechanism; S804: whether to obtain an IP address; S805: assign an IP address to the second device and establish a connection; S806: whether the second device path file is received; S807: select an available path and send the file with the same name to the second device; S808: whether a response from the second device is received; S809 configure the VLAN according to the received VLAN configuration format and send it to the second device; S810: whether it times out; S811: wait for a response; S812: feedback the configuration status result.

[0140] S801: Set to the first device mode.

[0141] In some embodiments, the device is set to a first device mode.

[0142] S802: Start UDHCPD or TFTPD.

[0143] In some embodiments, the first device starts the UDHCPD and TFTPD processes. The UDHCPD process is used to establish a communication connection for allocating an IP address to the second device. For the upstream access device, UDHCPD selects the LAN port to be accessed by the downstream device, and the downstream access device selects the upstream WAN port as the bound network card. The TFTPD process is used for file transfer.

[0144] S803: Start the timing mechanism.

[0145] In some embodiments, a timing mechanism is started to prevent the device from being in a waiting state under abnormal circumstances. If the timer expires, information indicating that the VLAN information synchronization has failed is fed back.

[0146] S804: Whether to obtain an IP address.

[0147] In some embodiments, it is determined whether the first device receives a DHCP request message sent by the second device. After the first device starts the UDHCPD process, it starts to monitor the DHCP request message of the access device. If the first device receives the DHCP request message sent by the second device, it proceeds to step S806, otherwise it proceeds to step S805 to determine whether the timer has timed out. If not, it maintains the monitoring state.

[0148] S805: Allocate an IP address to the second device and establish a connection.

[0149] In some embodiments, if the first device detects a DHCP request message sent by the second device, it sends a DHCP Offer message to the second device to allocate an IP address to the second device. After the DHCP process is completed, a communication connection is established between the first device and the second device.

[0150] S806: Whether the second device path file is received.

[0151] In some embodiments, the first device determines whether it has received a request from the second device to try the first file. If it has received a request from the second device to send the file, it proceeds to step S807; if it has not received a request, it proceeds to step S811 and waits until the timer times out.

[0152] S807: Select an available path and send the file with the same name to the second device.

[0153] In some embodiments, after receiving the request for the first file sending attempt from the second device, the first device saves a writable path of the local device in a file with the same name, and pushes the file to the path corresponding to the first file sending request from the second device.

[0154] S808: Whether a response from the second device is received.

[0155] In some embodiments, the first device determines whether the corresponding information from the second device is received. If received, the process proceeds to step S809; if not received, the process proceeds to step S811.

[0156] S809 configures the VLAN according to the received VLAN configuration format and sends it to the second device.

[0157] In some embodiments, the first device parses the received virtual LAN VLAN configuration file information and format file, collects the virtual LAN VLAN configuration information corresponding to the network port sent by the second device according to the virtual LAN VLAN information collection mechanism, writes it into a file with the same name according to the format required by the second device, and sends it to the corresponding directory of the second device.

[0158] S810: Timeout.

[0159] In some embodiments, the first device determines whether it has timed out, and if so, proceeds to step S812.

[0160] S811: Waiting for response.

[0161] In some embodiments, the second device is waiting for response information fed back.

[0162] S812: Feedback configuration status result.

[0163] In some embodiments, the configuration status result is fed back. If the file is successfully sent to the second device, the configuration is successful; if not, the configuration is unsuccessful.

[0164] Fig. 9 Schematic diagram of a network configuration architecture provided by an embodiment of the present application. Fig. 9 The network configuration architecture diagram shown includes: the Internet 100, a network access device 200, a user access device 300, a first access device 401, a second access device 402 and a third access device 403.

[0165] In some embodiments, multiple connections are established between the network access device 200 and the Internet 100 through multiple access point names APN or multiple wired access links. A single physical link is used to connect the network access device 200 and the user access device 300. And multiple logical link connections are realized by configuring the virtual local area network VLAN on the physical link. The logical link corresponds to the link established between the network access device 200 and the Internet 100. The user access device 300 is connected to access devices such as the first access device 401, the second access device 402 and the third access device 403. These devices can be terminals or functions. For example, the first access device 401 and the second access device 402 can use one data link to communicate, and the third access device 403 can use another data link to communicate.

[0166] In some embodiments, the virtual LAN VLAN configuration of the network access device 200 or the user access device 300 is completed according to the virtual LAN VLAN configuration information, and a VLAN logical link is established between the network access device 200 and the user access device 300, thereby realizing multi-logical link communication based on a single physical link.

[0167] In some embodiments, the association between user terminals or services and logical links can also be achieved by establishing multiple data links between the network access device 200 and the Internet 100.

[0168] An embodiment of the present application provides a communication terminal, which is communicatively connected to a second terminal, and includes: an information acquisition module, which is used to acquire first configuration information of a virtual local area network VLAN; an information sending module, which is used to send the first configuration information to a second device; and a communication module, which is used to establish a communication connection with the second terminal through an untagged interface.

[0169] An embodiment of the present application provides a communication terminal, which is communicatively connected to a first terminal, and includes: an information acquisition module, used to obtain first configuration information of a virtual local area network (VLAN) from the first terminal; a network configuration module, used to set the virtual local area network (VLAN) information according to the first configuration information, and to obtain second configuration information; and a communication module, used to establish a communication connection with the first terminal through an untagged interface.

[0170] An embodiment of the present application provides a computer-readable storage medium for computer-readable storage, the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned network configuration method.

[0171] It will be appreciated by those skilled in the art that all or some of the steps and systems in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0172] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present application. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present application.

Claims

1. A network configuration method, applied to a second device, wherein the second device is communicatively connected with a first device, comprising: Receiving first configuration information from the first device; Setting the virtual local area network VLAN information of the second device according to the first configuration information, and obtaining second configuration information; Based on the second configuration information, a multi-logical link communication connection is established between the first device and the second device on the physical link through an untagged port.

2. The network configuration method according to claim 1, characterized in that: The first configuration information includes at least one of the following information: Virtual local area network number VLAN ID, Internet protocol IP subnet information, access point name APN information, port type information.

3. The network configuration method according to claim 1, characterized in that: The second device receives the first configuration information in a form such as a socket or a file.

4. The network configuration method according to any one of claims 1 to 3, characterized in that: Also includes: Sending second configuration information to the first device, wherein the second configuration information includes at least one of the following information: virtual local area network number VLAN ID, Internet protocol IP subnet information, and access point name APN information.

5. A network configuration method, applied to a first device, wherein the first device is in communication connection with a second device, comprising: Obtaining first configuration information of a virtual local area network VLAN; Sending the first configuration information to a second device, so that the second device sets virtual local area network VLAN information according to the first configuration and obtains second configuration information; Based on the second configuration information, a multi-logical link communication connection is established between the first device and the second device on the physical link through an untagged interface.

6. The network configuration method according to claim 5, characterized in that: The first configuration information includes at least one of the following information: The unique number of the virtual local area network VLAN ID, Internet protocol IP subnet information, access point name APN information, and port type information.

7. The network configuration method according to claim 5, characterized in that: The method of sending the first configuration information to the second device includes at least one of sending a socket and sending a file.

8. The network configuration method according to any one of claims 5 to 7, characterized in that: Also includes: Acquire second configuration information from the second device.

9. The network configuration method according to claim 8, characterized in that: Also includes: Detecting, according to the second configuration information, whether the first configuration information conflicts with the second configuration information; If there is no conflict, the process ends; If there is a conflict, the conflict avoidance method is executed.

10. The network configuration method according to claim 9, characterized in that: The conflict avoidance method comprises: Reset the subnet address; The subnet of the first device is reconfigured.

11. A network configuration method, applied to a first device and a second device in communication connection, comprising: The first device obtains first configuration information of a virtual local area network VLAN; The first device sends the first configuration information to the second device; The second device sets the virtual local area network VLAN information of the second device according to the first configuration information; The second device obtains second configuration information according to the virtual local area network VLAN information of the second device; The second device sends the second configuration information to the first device; Based on the second configuration information, a multi-logical link communication connection is established between the first device and the second device on the physical link through an untagged port.

12. The network configuration method according to claim 11, characterized in that: It also includes conflict detection; The conflict detection comprises at least the following steps: The first device sends third configuration information to the second device; The second device obtains the subnet and gateway of the first device according to the third configuration information; The second device determines whether the subnet and gateway of the first device are the same as the subnet and gateway of the second device; If they are the same, modify the subnet and gateway of the second device; If they are not the same, the conflict detection is terminated.

13. The network configuration method according to claim 11, characterized in that: Also includes: The second device sends the method for obtaining the first configuration information to the first device; The first device sends the first configuration information to the second device according to the acquisition method.

14. The network configuration method according to claim 13, characterized in that: The acquisition method includes: The first configuration information is sent in the form of a socket or a file.

15. A communication terminal, communicatively connected to a second terminal, comprising: An information acquisition module, used for acquiring first configuration information of a virtual local area network VLAN; An information sending module, used for sending the first configuration information to the second terminal; The communication module is used to establish a multi-logical link communication connection with the second terminal on the physical link through an untagged interface.

16. A communication terminal, communicatively connected to a first terminal, comprising: An information acquisition module, used to acquire first configuration information of a virtual local area network VLAN from the first terminal; A network configuration module, used to set virtual local area network VLAN information according to the first configuration information and obtain second configuration information; The communication module is used to establish a multi-logical link communication connection with the first terminal on the physical link through an untagged interface.

17. A network configuration system, characterized in that: include: At least one first communication terminal as claimed in claim 15; and, at least one second communication terminal as claimed in claim 16; The first terminal establishes a communication connection with the second terminal through an untagged port.

18. A computer-readable storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the network configuration method described in any one of claims 1 to 4; or, the network configuration method described in any one of claims 6 to 10; or, the network configuration method described in any one of claims 11 to 14.

Citation Information

Patent Citations

  • Automated configuration for network devices

    US20150280992A1

  • Traffic forwarding control method, apparatus, and software defined networking controller and computer storage medium

    WO2018059503A1