Method and device for data transmission based on virtual local area network identifier
By automatically extracting the virtual LAN identification information and configuring the upper port of the first server, the time-consuming and labor-intensive configuration of the virtual LAN in the visual network is solved, and more efficient data transmission and reduced operation and maintenance costs are achieved.
Patent Information
- Application Number
- CN202411531600.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-02-18
AI Technical Summary
In the construction of visual network, operation and maintenance personnel need to manually configure a virtual local area network (VLAN) of multiple devices, resulting in long configuration time, low efficiency, and increased operation and maintenance costs.
By receiving the network request packet sent by the second server, the virtual LAN identification information corresponding to the target message data is extracted, and the default configuration adjustment of the uplink port of the first server is automatically made to support forwarding of the corresponding target message data. .
It reduces the configuration time of virtual LAN, improves configuration efficiency, and reduces operation and maintenance implementation costs, especially in the case of deployment in multiple regions, without manual port adjustment.
Smart Images

Figure CN119484259A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission, and in particular to a method for performing data transmission based on a virtual local area network identifier and a device for performing data transmission based on a virtual local area network identifier. Background Art
[0002] In the construction of visual networking, implementation personnel need to manually configure VLAN (Virtual Local Area Network) for the deployed visual networking access devices to isolate broadcast domains. When there are many devices, operation and maintenance personnel need to log in to each device manually to configure it and divide different VLAN IDs to isolate broadcast domains. At the same time, due to the scattered locations of various nodes, it is time-consuming and laborious to log in to each node to manually configure the device, which increases the cost of operation and maintenance implementation. Summary of the invention
[0003] In view of the above problems, a method and apparatus for performing data transmission based on a virtual local area network identifier is proposed to overcome the above problems or at least partially solve the above problems, including:
[0004] A method for data transmission based on a virtual local area network identifier, applied to a first server, the method comprising:
[0005] receiving a network access request data packet sent by the second server, wherein the network access request data packet is a data packet for requesting to forward target message data;
[0006] Extracting virtual local area network identification information corresponding to the target message data from the network access request data packet;
[0007] The default configuration of the uplink port of the first server is adjusted according to the virtual local area network identification information, and the adjusted uplink port is used to receive the target message data.
[0008] Optionally, the adopting the adjusted uplink port to receive the target message data includes:
[0009] Obtaining the current uplink port of the first server;
[0010] When it is determined that the current uplink port is the adjusted uplink port, the adjusted uplink port is used to receive the target message data.
[0011] Optionally, the method further comprises:
[0012] Adjusting the default configuration of the downlink port of the first server according to the virtual local area network identification information;
[0013] The target message data is forwarded to the target conference terminal connected to the first server using the adjusted downlink port.
[0014] Optionally, the adopting the adjusted downlink port to forward the target message data to a target conference terminal connected to the first server includes:
[0015] Obtaining the current downlink port of the first server;
[0016] When it is determined that the current downlink port is the adjusted downlink port, the adjusted downlink port is used to receive the target message data.
[0017] Optionally, adjusting the default configuration of the uplink port of the first server according to the virtual local area network identification information includes:
[0018] Sending the virtual local area network identification information to a register in the first server;
[0019] The virtual local area network identification information is forwarded to the uplink port of the first server through the register to adjust the default configuration.
[0020] Optionally, extracting the virtual local area network identification information corresponding to the target message data from the network access request data packet includes:
[0021] Determining whether there is a preset field for indicating virtual local area network identification information in the network access request data packet;
[0022] When it is determined that the preset field exists in the network access request data packet, the virtual local area network identification information corresponding to the target message data is extracted from the preset field.
[0023] Optionally, it also includes:
[0024] Determine the data processing queue corresponding to the adjusted uplink port;
[0025] The target message data is added to the data processing queue for processing.
[0026] A device for transmitting data based on a virtual local area network identifier, the device comprising:
[0027] A network access request data packet receiving module, used to receive a network access request data packet sent by the second server, wherein the network access request data packet is a data packet used to request forwarding target message data during a conference;
[0028] A virtual local area network identification extraction module, used to extract the virtual local area network identification information corresponding to the target message data from the network access request data packet;
[0029] The uplink port adjustment module is used to adjust the default configuration of the uplink port of the first server according to the virtual local area network identification information, and use the adjusted uplink port to receive the target message data.
[0030] An electronic device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the method for transmitting data based on a virtual local area network identifier as described above is implemented.
[0031] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for transmitting data based on a virtual local area network identifier as described above is implemented.
[0032] The embodiments of the present invention have the following advantages:
[0033] In an embodiment of the present invention, the first server receives the network access request data packet sent by the second server and parses the virtual LAN identification information corresponding to the target message data to be forwarded, and then uses the virtual LAN identification information to automatically adjust the default configuration of the uplink port of the first server, so that the uplink port can support forwarding the target message data corresponding to the virtual LAN identification information. Compared with manual configuration of the virtual LAN, the configuration time is reduced and the configuration efficiency is improved. At the same time, by realizing automatic configuration of the port within the first server, even if there are second servers in different regions, there is no need for operation and maintenance personnel to go to different regions to adjust the ports of the second servers respectively, thereby reducing the cost of operation and maintenance implementation. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0035] Figure 1 It is a flowchart of a method for performing data transmission based on a virtual local area network identifier provided by an embodiment of the present invention;
[0036] Figure 2 It is a flowchart of another method for performing data transmission based on a virtual local area network identifier provided by an embodiment of the present invention;
[0037] Figure 3a It is a schematic diagram of a transmission structure of visual network message data provided by an embodiment of the present invention;
[0038] Figure 3bIt is a schematic diagram of a transmission process of visual network message data provided by an embodiment of the present invention;
[0039] Figure 4 It is a structural diagram of a device for performing data transmission based on a virtual local area network identifier provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] Reference Figure 1 , shows a flowchart of a method for performing data transmission based on a virtual local area network identifier provided by an embodiment of the present invention, which may specifically include the following steps:
[0042] Step S101, receiving a network access request data packet sent by a second server, where the network access request data packet is a data packet for requesting to forward target message data;
[0043] In the embodiment of the present invention, an uplink port is provided in the first server, and the uplink port can realize communication with the second server.
[0044] If the first server and the second server need to perform data transmission, the uplink port of the first server needs to be set to the port corresponding to the target message data to be forwarded.
[0045] To implement automatic port configuration of the first server, the second server may generate a network access request data packet before sending the target message data. The network access request data packet is used to request the first server to forward the target message data. The network access request data packet may carry virtual LAN identification information corresponding to the target message data. The virtual LAN identification information may be determined based on the destination address of the target message data.
[0046] The first server may receive a network access request data packet sent by the second server, so as to further implement forwarding of target message data based on analysis of the network access request data packet.
[0047] In an embodiment of the present invention, the first server and the second server may be servers in a conference, and the target message data may be message data that needs to be forwarded and processed in the conference. Specifically, to ensure data transmission security, the first server and the second server may perform data transmission within the visual network. The first server may be a visual network access device, such as a visual network router, a visual network switch, and other visual network devices; the second server may be a visual network core server in the visual network. The visual network core server is a key device in the video surveillance system and is used to manage and process large amounts of video data.
[0048] Step S102, extracting virtual local area network identification information corresponding to the target message data from the network access request data packet;
[0049] After receiving the network access request data packet, the first server may parse the network access request data packet to extract virtual local area network identification information corresponding to the target message data, such as VLAN-ID (Virtual Local Area Network Identifier).
[0050] VLAN (Virtual Local Area Network) is a logical segmentation of network users connected to the port of the second layer switch. It is not limited by the physical location of the network users but is segmented according to the needs of the users. A VLAN can be implemented on a switch or across switches. VLAN can be grouped according to the location, role, department of the network users or according to the applications and protocols used by the network users. Switch-based virtual LAN can solve the conflict domain and broadcast domain problems for the LAN.
[0051] In one embodiment of the present invention, the process of the first server extracting the virtual LAN identification information corresponding to the target message data from the network access request data packet is specifically as follows: the first server determines whether there is a preset field for representing the virtual LAN identification information in the network access request data packet; when it is determined that there is a preset field in the network access request data packet, the virtual LAN identification information corresponding to the target message data is extracted from the preset field.
[0052] In actual applications, the network access request data packet may include one or more fields, and the parsing process of the network access request data by the first server is specifically manifested as parsing each field.
[0053] The first server may first determine whether the network access request data packet contains a preset field. When the network access request data packet contains the preset field, the first server may extract the virtual local area network identification information corresponding to the target message data based on the preset field.
[0054] When the preset field does not exist in the network access request data packet, the first server may be used to generate an alarm message for notifying the second server to regenerate the network access request data packet, and send the generated alarm message to the first server.
[0055] In one example, the first server may include a CPU processor, and the CPU processor may process the data received by the first server based on the memory image IO technology. The CPU processor in the embodiment of the present invention may parse the incoming message data and extract the virtual local area network identification information corresponding to the target message data, and may also forward the target message data.
[0056] Among them, in the first server, memory-mapped I / O (MMIO for short) is a technology used to access hardware devices in a computer system. It maps the registers or memory areas of the hardware devices to the address space of the CPU, so that the CPU can directly read and write the status and data of the hardware devices through memory access instructions. The following are the main functions and advantages of memory-mapped IO:
[0057] 1. Simplify hardware access
[0058] Memory-mapped IO maps the registers of hardware devices to the memory address space, allowing the CPU to directly use memory access instructions to read and write the status and data of hardware devices. This method simplifies the complexity of hardware access and avoids the use of special I / O instructions (such as IN and OUT instructions), thereby improving programming flexibility and efficiency.
[0059] (ii) Improve performance
[0060] Since memory-mapped IO allows the CPU to operate hardware devices directly through memory access instructions, the number and complexity of instructions can be reduced, thereby improving system performance. In addition, memory-mapped IO can also utilize the CPU's cache mechanism to further increase the speed of data access.
[0061] (III) Simplify the programming model
[0062] Memory-mapped IO provides a unified programming model that allows software developers to access hardware devices as if they were accessing memory. This consistency simplifies the programming model and makes it easier for developers to write and debug code.
[0063] (IV) Support DMA (Direct Memory Access)
[0064] Memory mapped IO provides the basis for DMA (direct memory access). DMA allows hardware devices to directly access system memory without CPU intervention. By mapping the registers of hardware devices to the memory address space, the DMA controller can directly read and write these registers, thereby achieving efficient data transfer.
[0065] 5. Support multi-tasking and multi-core systems
[0066] Memory-mapped IO enables multiple tasks and multiple CPU cores to share hardware resources. By mapping the registers of hardware devices to the memory address space, different tasks and cores can access these registers concurrently, thus achieving efficient resource sharing and task scheduling.
[0067] (VI) Simplify device drivers
[0068] Memory-mapped IO simplifies the development of device drivers. Drivers can operate hardware devices directly through memory access instructions without having to deal with complex I / O instructions and interrupt processing. This makes driver development simpler and more efficient.
[0069] Step S103, adjusting the default configuration of the uplink port of the first server according to the virtual local area network identification information, and using the adjusted uplink port to receive target message data.
[0070] After extracting the virtual LAN identification information, the first server can adjust the default configuration of the current uplink port to the port corresponding to the virtual LAN identification information, and then the uplink port of the first server can receive the target message data and then forward the target message data.
[0071] Among them, the default configuration refers to the default configuration parameters preset in the device when it leaves the factory or in the initial state. These parameters are usually set by the device manufacturer to ensure that the device can work properly, covering the basic settings of the network device, such as IP address, subnet mask, default gateway, VLAN configuration, port mode, security settings, etc. The default configuration can be preset, universal, secure and modifiable. In actual applications, the default configuration does not require complex configuration when the device is used for the first time to make it work properly. And the default configuration can be applied to most common network environments and can meet basic network requirements. In addition, the default configuration contains basic security settings to prevent unauthorized access and attacks. At the same time, the modifiability of the default configuration allows users to modify and adjust the default configuration according to actual needs to meet specific network requirements.
[0072] The first server of the embodiment of the present invention can modify the default configuration based on the modifiability of the default configuration and adjust the port according to the virtual LAN identification information corresponding to the target message data currently to be forwarded, so that the first server can receive or process the target message data sent by the second server.
[0073] In one embodiment of the present invention, the first server can make default configuration adjustments to the uplink port of the first server according to the virtual LAN identification information, including: sending the virtual LAN identification information to a register in the first server; forwarding the virtual LAN identification information to the uplink port of the first server through the register to make default configuration adjustments.
[0074] In actual applications, the first server also includes a preset function module and register for realizing automatic port configuration. The CPU processor of the first server can extract the virtual LAN identification information in the network access request data packet. The preset function module can obtain the virtual LAN identification information from the CPU processor, and then send the obtained virtual LAN identification information to the register. The register can store the virtual LAN identification information on the one hand, and forward the virtual LAN identification information to the uplink port of the first server on the other hand, so as to realize the default configuration adjustment of the uplink port of the first server, so that the uplink port of the first server is also suitable for processing the target message data sent by the second server.
[0075] In an embodiment of the present invention, the first server may also determine a data processing queue corresponding to the adjusted uplink port; and add the target message data to the data processing queue for processing.
[0076] In actual applications, a large amount of target message data can be processed in the first server. In order to improve the message processing efficiency, multiple processing threads can be set in the first server. Different processing threads can correspond to different data processing queues. The correspondence between the data processing queues and ports can be pre-established in the first server so that the message data transmitted by the same port can be assigned to the same data processing queue for processing.
[0077] When the first server receives the target message data through the adjusted uplink port, the corresponding data processing queue of the adjusted uplink port in the CPU processor can be determined, and then the received target message data can be added to the data processing queue for processing.
[0078] In one example, in the data processing queue, multiple target message data to be processed may be sorted according to the order in which each target message data enters the queue.
[0079] In another example, the target message data may carry a priority attribute. After entering the queue, multiple target message data may be sorted according to the priority and the time when the target queue entered the queue. For example, first sort them from high to low by priority, and then sort them according to the time when they entered the queue with the same priority.
[0080] In another example, while the target message data is waiting to be forwarded in the data processing queue, if the priority of the target message data changes, the target message data may be re-sorted based on the latest priority of the target message data.
[0081] In one embodiment of the present invention, the first server may be composed of an uplink port, a CPU, a preset function module for realizing automatic port configuration, and a register. When the newly added preset function module in the first server is in an on state, the first server may perform data forwarding processing according to the network access request data and the target message data in accordance with the above steps S101 to S103, thereby reducing the manpower cost of operating and maintaining the equipment. At the same time, the preset function module may ensure that the default configuration of the equipment port is correctly issued, give full play to the advantages of multiple processors, process the target message data of different VLAN-IDs separately, and improve the performance of the network equipment.
[0082] In an embodiment of the present invention, the first server receives the network access request data packet sent by the second server and parses the virtual LAN identification information corresponding to the target message data to be forwarded, and then uses the virtual LAN identification information to automatically adjust the default configuration of the uplink port of the first server, so that the uplink port can support forwarding the target message data corresponding to the virtual LAN identification information. Compared with manual configuration of the virtual LAN, the configuration time is reduced and the configuration efficiency is improved. At the same time, by realizing automatic configuration of the port within the first server, even if there are second servers in different regions, there is no need for operation and maintenance personnel to go to different regions to adjust the ports of the second servers respectively, thereby reducing the cost of operation and maintenance implementation.
[0083] Reference Figure 2 , shows a flowchart of another method for performing data transmission based on a virtual local area network identifier provided by an embodiment of the present invention, which may specifically include the following steps:
[0084] Step S201, receiving a network access request data packet sent by a second server, where the network access request data packet is a data packet for requesting to forward target message data;
[0085] Step S202, extracting virtual local area network identification information corresponding to the target message data from the network access request data packet;
[0086] Step S203, adjusting the default configuration of the uplink port of the first server according to the virtual local area network identification information;
[0087] Step S204, obtaining the current uplink port of the first server, and when determining that the current uplink port is the adjusted uplink port, using the adjusted uplink port to receive the target message data.
[0088] In the first server, to ensure that the target message data can be forwarded, the current uplink port of the first server can be monitored, and it can be determined whether the current uplink port is the adjusted uplink port. If it is determined that the uplink port has been adjusted, the adjusted uplink port can be used to receive the target message data.
[0089] Step S205, adjusting the default configuration of the downlink port of the first server according to the virtual local area network identification information;
[0090] In actual applications, after the first server determines the virtual LAN identification information, if the target message data needs to be forwarded to the next-level conference terminal, the default configuration of the downlink port of the first server can be adjusted according to the LAN identification information to achieve the forwarding of the target message data from the first server to the conference terminal.
[0091] Step S206, obtaining the current downlink port of the first server, and when determining that the current downlink port is the adjusted downlink port, using the adjusted downlink port to receive the target message data.
[0092] In the first server, to ensure that the target message data can be forwarded, the current downlink port of the first server can be monitored, and it can be determined whether the current downlink port is the adjusted downlink port. If it is determined that the downlink port has been adjusted, the adjusted uplink port can be used to receive the target message data.
[0093] In an embodiment of the present invention, step S203 and step S205 may be performed synchronously. Specifically, the first server may include a preset function module and register for implementing automatic port configuration.
[0094] In one embodiment of the present invention, the downlink port of the first server can also be connected to the first server of the next level. The data transmission process from the first server to the first server of the next level can refer to the data transmission process between the first server and the conference terminal.
[0095] In an embodiment of the present invention, in an embodiment of the present invention, the first server parses the virtual LAN identification information corresponding to the target message data to be forwarded by receiving the network access request data packet sent by the second server, and then uses the virtual LAN identification information to automatically adjust the default configuration of the uplink port of the first server, so that the uplink port can support forwarding the target message data corresponding to the virtual LAN identification information, and uses the virtual LAN identification information to automatically adjust the default configuration of the downlink port of the first server, so that the downlink port can support forwarding the target message data corresponding to the virtual LAN identification information to the conference terminal. Compared with manual configuration of the virtual LAN, the configuration time is reduced and the configuration efficiency is improved. At the same time, by realizing automatic configuration of the port within the first server, even if there are second servers in different regions, there is no need for operation and maintenance personnel to go to different regions to adjust the ports of the second servers respectively, thereby reducing the operation and maintenance implementation costs.
[0096] Reference Figure 3a The present invention is a schematic diagram of a transmission structure of visual network message data in an embodiment of the present invention, wherein the visual network core server can be connected to the visual network access device, and the visual network access device can be connected to one or more visual network conferencing terminals. The visual network access device is used as a reference fixed object, and the uplink port of the visual network access device is connected to the service port of the visual network core server, and the downlink port of the visual network access device is connected to the video conferencing terminal. When the device information of the registered video conferencing terminals 1, 2, 3, 4, and 5 is allocated on the visual network core server, the corresponding data message labels are ID 10, 20, 30, 40, and 50 respectively; thus, the interfaces of the video conferencing terminals 1, 2, 3, 4, and 5 are configured with VLAN IDs 10, 20, 30, 40, and 50 respectively. For example, when a visual data packet (i.e., the target message data in the embodiment of the present invention) is sent to the video conferencing terminal 1, the VLAN ID of the message data is 10,
[0097] Reference Figure 3b , showing a schematic diagram of the transmission process of a visual network message data in an embodiment of the present invention, wherein the visual network access device may include an uplink port for data transmission with a visual network core server, a downlink port for data transmission with a visual network conference terminal, a V-FLT device for realizing data transmission based on a VLAN ID, a CPU (memory image IO may be used for data processing), and registers for data storage.
[0098] Based on the above structure in the visual network access device, during the visual network conference, the V-FLT device service process on the visual network access device is turned on by default. This service will monitor the data stream of the uplink port of the downstream visual network access device at preset intervals to see if there are special fields in the incoming message.
[0099] As above Figure 3b As shown in , the data processing flow in the visual Internet access device can be divided into processes A1 to A8.
[0100] In the A1 process, when the data packet sent by the visual network core server (i.e., the network access request data packet in the embodiment of the present invention, which is a v2v network access packet) enters the uplink port of the visual network access device, the V-FLT device service process A3 senses that the A2 data stream enters the CPU, and the CPU forwards, processes and parses the data packet, and extracts special fields (such as VLAN ID) from the data packet. The V-FLT device service process A4 can obtain the VLAN ID from the CPU, and then the VLAN ID string can be stored in the register through the V-FLT device service process A6, which will be sent to the access device port configuration by the register service processes A7 and A8. At this time, the V-FLT device service processes A3 and A5 will monitor whether the default configurations of the uplink port and the downlink port on the visual network access device are correctly issued.
[0101] When it is determined that the default configurations of the uplink port and the downlink port on the visual network access device are correctly issued, the visual network access device can receive the target message data from the visual network core server, and after processing by the CPU processor, send the forwarding data packets of the target message data to the output queue in sequence, and then send them to the designated downlink port to configure the default VLAN ID, so as to forward the forwarding data packets of the target message data to the conference terminal.
[0102] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0103] Reference Figure 4 , shows a schematic diagram of the structure of a device for transmitting data based on a virtual local area network identifier provided by an embodiment of the present invention, which may specifically include the following modules:
[0104] The network access request data packet receiving module 401 is used to receive a network access request data packet sent by the second server, wherein the network access request data packet is a data packet used to request forwarding target message data during the conference;
[0105] A virtual local area network identification extraction module 402, used to extract the virtual local area network identification information corresponding to the target message data from the network access request data packet;
[0106] The uplink port adjustment module 403 is used to adjust the default configuration of the uplink port of the first server according to the virtual local area network identification information, and use the adjusted uplink port to receive the target message data.
[0107] In an embodiment of the present invention, the uplink port adjustment module 403 may include the following submodules:
[0108] A current uplink port determination submodule, used to obtain the current uplink port of the first server;
[0109] The target message data receiving submodule is used to use the adjusted uplink port to receive the target message data when it is determined that the current uplink port is the adjusted uplink port.
[0110] In an embodiment of the present invention, the device may further include the following modules:
[0111] A downlink port configuration adjustment module, used for adjusting the default configuration of the downlink port of the first server according to the virtual local area network identification information;
[0112] The target message data forwarding module is used to forward the target message data to the target conference terminal connected to the first server by using the adjusted downlink port.
[0113] In one embodiment of the present invention, the target message data forwarding module may include the following submodules:
[0114] A current downlink port determination submodule, used to obtain the current downlink port of the first server;
[0115] The downlink port determination submodule is used to use the adjusted downlink port to receive the target message data when it is determined that the current downlink port is the adjusted downlink port.
[0116] In an embodiment of the present invention, the uplink port adjustment module 403 may include the following submodules:
[0117] A virtual local area network identification information sending submodule, used for sending the virtual local area network identification information to a register in the first server;
[0118] The virtual local area network identification information forwarding submodule is used to forward the virtual local area network identification information to the uplink port of the first server through the register to adjust the default configuration.
[0119] In an embodiment of the present invention, the virtual local area network identification extraction module 402 may include the following submodules:
[0120] A preset field determination submodule, used to determine whether there is a preset field for indicating virtual local area network identification information in the network access request data packet;
[0121] The identification information extraction submodule is used to extract the virtual local area network identification information corresponding to the target message data from the preset field when it is determined that the preset field exists in the network access request data packet.
[0122] In an embodiment of the present invention, the device may further include the following modules:
[0123] A data processing queue determination submodule, used to determine the data processing queue corresponding to the adjusted uplink port;
[0124] The queue adding submodule is used to add the target message data to the data processing queue for processing.
[0125] In an embodiment of the present invention, the first server receives the network access request data packet sent by the second server and parses the virtual LAN identification information corresponding to the target message data to be forwarded, and then uses the virtual LAN identification information to automatically adjust the default configuration of the uplink port of the first server, so that the uplink port can support forwarding the target message data corresponding to the virtual LAN identification information. Compared with manual configuration of the virtual LAN, the configuration time is reduced and the configuration efficiency is improved. At the same time, by realizing automatic configuration of the port within the first server, even if there are second servers in different regions, there is no need for operation and maintenance personnel to go to different regions to adjust the ports of the second servers respectively, thereby reducing the cost of operation and maintenance implementation.
[0126] An embodiment of the present invention further provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the method for transmitting data based on a virtual local area network identifier as described above is implemented.
[0127] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for transmitting data based on a virtual local area network identifier as described above is implemented.
[0128] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0129] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0130] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0131] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0132] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0133] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0134] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0135] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0136] The method and device for data transmission based on virtual LAN identification are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for general technicians in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for data transmission based on a virtual local area network identifier, characterized in that: Applied to a first server, the method comprises: receiving a network access request data packet sent by the second server, wherein the network access request data packet is a data packet for requesting to forward target message data; Extracting virtual local area network identification information corresponding to the target message data from the network access request data packet; The default configuration of the uplink port of the first server is adjusted according to the virtual local area network identification information, and the adjusted uplink port is used to receive the target message data.
2. The method according to claim 1, characterized in that: The adopting the adjusted uplink port to receive the target message data comprises: Obtaining the current uplink port of the first server; When it is determined that the current uplink port is the adjusted uplink port, the adjusted uplink port is used to receive the target message data.
3. The method according to claim 1, characterized in that: The method further comprises: Adjusting the default configuration of the downlink port of the first server according to the virtual local area network identification information; The target message data is forwarded to the target conference terminal connected to the first server using the adjusted downlink port.
4. The method according to claim 3, characterized in that The step of using the adjusted downlink port to forward the target message data to a target conference terminal connected to the first server includes: Obtaining the current downlink port of the first server; When it is determined that the current downlink port is the adjusted downlink port, the adjusted downlink port is used to receive the target message data.
5. The method according to claim 1, characterized in that: The step of adjusting the default configuration of the uplink port of the first server according to the virtual local area network identification information includes: Sending the virtual local area network identification information to a register in the first server; The virtual local area network identification information is forwarded to the uplink port of the first server through the register to adjust the default configuration.
6. The method according to claim 1, characterized in that The step of extracting the virtual local area network identification information corresponding to the target message data from the network access request data packet includes: Determining whether there is a preset field for indicating virtual local area network identification information in the network access request data packet; When it is determined that the preset field exists in the network access request data packet, the virtual local area network identification information corresponding to the target message data is extracted from the preset field.
7. The method according to claim 1, characterized in that Also includes: Determine the data processing queue corresponding to the adjusted uplink port; The target message data is added to the data processing queue for processing.
8. A device for data transmission based on a virtual local area network identifier, characterized in that: The device comprises: A network access request data packet receiving module, used to receive a network access request data packet sent by the second server, wherein the network access request data packet is a data packet used to request forwarding target message data during a conference; A virtual local area network identification extraction module, used to extract the virtual local area network identification information corresponding to the target message data from the network access request data packet; The uplink port adjustment module is used to adjust the default configuration of the uplink port of the first server according to the virtual local area network identification information, and use the adjusted uplink port to receive the target message data.
9. An electronic device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the method for transmitting data based on a virtual local area network identifier as claimed in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for transmitting data based on a virtual local area network identifier as claimed in any one of claims 1 to 7 is implemented.