A method, apparatus, device, and readable storage medium for constructing a communication link.

By creating a virtual network port on the CPU main control board and dividing it into VLANs, combined with VLAN division and trunk mode on the switching device ports, the communication links of the airborne server were expanded, solving the problem of the limited number of communication interfaces of the airborne server and realizing more efficient business flow communication.

CN115567345BActive Publication Date: 2025-11-14CHINA ELECTRONICS TECHNOLOGY AVIONICS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110744867.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-30
Publication Date
2025-11-14
Estimated Expiration
2041-06-30

AI Technical Summary

Technical Problem

When the CPU main control board of the airborne server is performing air-to-ground transmission routing for airborne service flows, the number of external Ethernet interfaces is limited, which cannot meet the communication needs of more service flows.

Method used

Multiple virtual network ports are created on the physical network ports of the CPU main control board and assigned to different VLANs. At the same time, the ports of the switching devices are assigned to different VLANs and communication is carried out in trunk mode to build more communication links.

Benefits of technology

By expanding communication links, the communication needs of more service flows can be met, the reliability and effectiveness of communication links can be improved, crosstalk between communication links can be avoided, and flexible service routing can be achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115567345B_ABST
    Figure CN115567345B_ABST
Patent Text Reader

Abstract

This application discloses a communication link construction method, apparatus, device, and computer-readable storage medium. The method includes: virtualizing multiple virtual network ports on each physical network port of a CPU main control board, and assigning each virtual network port to a different VLAN; assigning each port on a switching device to a corresponding different VLAN, so that the virtual network ports in different VLANs and the ports in their respective VLANs form a communication link; and using trunk mode for communication between the CPU main control board and the switching device. The above-disclosed technical solution constructs more communication links by virtualizing multiple virtual network ports on each physical network port and assigning the virtual network ports and ports on the switching device to different VLANs, thereby expanding the communication link capacity. Furthermore, the VLAN division isolates each communication link from each other, facilitating service routing, and the trunk mode ensures effective communication across all communication links.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of airborne server technology, and more specifically, to a method, apparatus, device, and computer-readable storage medium for constructing a communication link. Background Technology

[0002] Currently, airborne servers are generally implemented using a CPU (Central Processing Unit) main control board and Ethernet switching boards / chips. Although external Ethernet interfaces of the airborne server can be expanded using Ethernet switching boards / chips, the number of external Ethernet interfaces that the CPU main control board can select when performing airborne service flow air-to-ground transmission routing is limited by the number of buses between the CPU main control board and the Ethernet switching boards / chips. This limits the number of air-to-ground communication links that the airborne wireless communication link management software residing on the CPU main control board can select, thus failing to meet the communication needs of more airborne service flows.

[0003] In summary, how to build more communication links to meet the communication needs of more business flows is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0004] In view of this, the purpose of this application is to provide a communication link construction method, apparatus, device and computer-readable storage medium for constructing more communication links in order to meet the communication needs of more service flows.

[0005] To achieve the above objectives, this application provides the following technical solution:

[0006] A method for constructing a communication link, comprising:

[0007] Multiple virtual network ports are created on each physical network port on the CPU main control board, and each virtual network port is assigned to a different VLAN;

[0008] Each port on the switching device connected to the CPU main control board is assigned to a different VLAN, so that the virtual network ports on the CPU main control board in different VLANs and the ports on the switching device in the corresponding VLANs form a communication link; wherein, the CPU main control board and the switching device communicate in trunk mode.

[0009] Preferably, after creating multiple virtual network ports on each physical network port of the CPU main control board, it also includes...

[0010] Configure different IP addresses for each of the virtual network ports.

[0011] Preferably, after creating multiple virtual network ports on each physical network port of the CPU main control board, the method further includes:

[0012] Configure a corresponding physical network card for each of the virtual network ports.

[0013] Preferably, after establishing a communication link between the virtual network ports on the CPU main control board located in different VLANs and the ports on the switching device located in the corresponding VLANs, the method further includes:

[0014] When a first IP packet is sent using the first target virtual network port on the CPU main control board, a first tag is added to the data link layer header of the first IP packet; wherein, the first tag includes the identifier of the VLAN where the first target virtual network port is located;

[0015] The physical network interface card corresponding to the first target virtual network port is invoked, and the first IP packet with the first tag is sent to the corresponding first target port on the switching device through the corresponding communication link. The switching device then removes the first tag from the first IP packet with the first tag and sends the first IP packet with the first tag removed to the device connected to the first target port through the first target port.

[0016] Preferably, after establishing a communication link between the virtual network ports on the CPU main control board located in different VLANs and the ports on the switching device located in the corresponding VLANs, the method further includes:

[0017] When the switching device receives a second IP packet from the outside through the second target port, it adds a second tag to the data link layer header of the second IP packet; wherein, the second tag includes the identifier of the VLAN where the second target port is located;

[0018] The second IP packet with the second tag is sent to the corresponding second virtual network port on the CPU main control board through the corresponding communication link. The CPU main control board then removes the second tag from the second IP packet with the second tag to obtain the second IP packet and sends the second IP packet to the third virtual network port.

[0019] A third tag is added to the data link layer header of the second IP packet; wherein the third tag includes the identifier of the VLAN where the third target virtual network interface is located;

[0020] The physical network interface card corresponding to the third target virtual network port is invoked, and the second IP packet with the third tag is sent to the corresponding third target port on the switching device through the corresponding communication link. The switching device then removes the third tag from the second IP packet with the third tag and sends the second IP packet with the third tag removed to the device connected to the third target port through the third target port.

[0021] Preferably, before assigning each port on the switching device connected to the CPU main control board to different VLANs, the method further includes:

[0022] Multiple virtual ports are created on each port of the switching device;

[0023] Accordingly, each port on the switching device connected to the CPU main control board is assigned to a different VLAN, including:

[0024] Each virtual port on the switching device is assigned to a different VLAN.

[0025] A communication link construction apparatus, comprising:

[0026] The virtual module is used to create multiple virtual network ports on each physical network port on the CPU main control board, and to assign each virtual network port to a different VLAN;

[0027] The partitioning module is used to partition each port on the switching device connected to the CPU main control board into different VLANs, so that the virtual network ports on the CPU main control board in different VLANs and the ports on the switching device in the corresponding VLANs can form communication links; wherein, the CPU main control board and the switching device communicate in trunk mode.

[0028] Preferred options also include:

[0029] The first configuration module is used to configure different IP addresses for each virtual network port after creating multiple virtual network ports on each physical network port of the CPU main control board.

[0030] A communication link building device, comprising:

[0031] Memory, used to store computer programs;

[0032] A processor, configured to implement the steps of the communication link construction method as described in any of the preceding claims when executing the computer program.

[0033] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the communication link construction method as described in any of the preceding claims.

[0034] This application provides a communication link construction method, apparatus, device, and computer-readable storage medium. The method includes: creating multiple virtual network ports on each physical network port of a CPU main control board and assigning each virtual network port to a different VLAN; assigning each port on a switching device connected to the CPU main control board to a corresponding VLAN, so that the virtual network ports on the CPU main control board in different VLANs and the ports on the switching device in the corresponding VLANs form a communication link; wherein the CPU main control board and the switching device communicate in trunk mode.

[0035] The technical solution disclosed in this application constructs more communication links by virtualizing multiple virtual network ports on each physical network port on the CPU main control board, dividing the virtual network ports into different VLANs, and dividing each port on the switching device into a corresponding different VLAN, thereby expanding the communication links and meeting the communication needs of more service flows. Among them, the division of VLANs can isolate each communication link from each other and facilitate service routing. In addition, using trunk mode for communication between the CPU main control board and the switching device can enable all communication links to interact between the two, thereby ensuring the reliability and effectiveness of the communication links. Attached Figure Description

[0036] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0037] Figure 1 A flowchart illustrating a communication link construction method provided in this application embodiment;

[0038] Figure 2 This is a schematic diagram of the physical connection and logical service flow interaction of the internal communication link of the airborne server provided in the embodiments of this application;

[0039] Figure 3 A schematic diagram illustrating the structure of an IP packet provided in an embodiment of this application;

[0040] Figure 4 This is a schematic diagram of the structure of a communication link building device provided in an embodiment of this application;

[0041] Figure 5 This is a schematic diagram of a communication link construction device provided in an embodiment of this application. Detailed Implementation

[0042] The core of this application is to provide a communication link construction method, apparatus, device, and computer-readable storage medium for constructing more communication links to meet the communication needs of more service flows.

[0043] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0044] See Figure 1 The diagram illustrates a flowchart of a communication link construction method provided in an embodiment of this application. This communication link construction method may include:

[0045] S11: Create multiple virtual network ports on each physical network port on the CPU main control board, and assign each virtual network port to a different VLAN.

[0046] In this application, a Linux operating system runs on the airborne server, which supports kernel modules compliant with the IEEE 802.1Q protocol. Specifically, the Linux operating system can run on the CPU main control board of the airborne server, which can dynamically load 802.1q kernel modules to support the IEEE 802.1Q protocol. Furthermore, the switching equipment (specifically, switching boards / switching chips, etc.) in the airborne server are Layer 2 / Layer 3 devices, all supporting the IEEE 802.1Q protocol. The IEEE 802.1Q protocol, or Virtual Bridged Local Area Networks protocol, specifies the international standard implementation of VLANs (Virtual Local Area Networks).

[0047] Building upon the above, multiple virtual network ports are created on each physical network port of the CPU main control board in the onboard server. Then, each virtual network port is assigned to a different VLAN. From the operating system's perspective, these multiple virtual network ports can be used as different network ports. When assigning them to different VLANs, different VLAN IDs (i.e., VLAN identifiers) can be configured for each VLAN, and the virtual network ports are numbered based on these VLAN IDs, thus facilitating the differentiation between different VLANs and virtual network ports. See, for example... Figure 2As shown, it illustrates the physical connection of the internal communication link and the logical service flow interaction of the airborne server provided in the embodiments of this application. Figure 2 Taking a physical network port 1 on the CPU main control board as an example, which serves as an internal interface for connecting and communicating with switching equipment (the CPU main control board also includes a network port 2 for maintaining the Ethernet, which will not be virtualized or described here), this application virtualizes four virtual network ports on the aforementioned physical network port 1 on the CPU main control board, and assigns these four virtual network ports to four VLANs. The VLAN IDs of these four VLANs are 2, 3, 4, and 5, respectively, and the four virtual network ports are correspondingly numbered Eth1.2, Eth1.3, Eth1.4, and Eth1.5. It should be noted that... Figure 2 This explanation only uses the example of a CPU main control board containing one physical network port. It does not limit the number of physical network ports that a CPU main control board can contain. When a CPU main control board contains more physical network ports, the implementation method is similar to the above, and will not be repeated here.

[0048] S12: Assign each port on the switching device connected to the CPU main control board to a different VLAN, so that the virtual network ports on the CPU main control board in different VLANs and the ports on the switching device in the corresponding VLANs can form a communication link; wherein, the CPU main control board and the switching device communicate in trunk mode.

[0049] After executing step S11, each port on the switching device connected to the CPU main control board (the two can be connected through an internal bus) can be assigned to different VLANs. That is, when assigning VLANs to each port on the switching device, the ports can be assigned VLANs based on the VLAN assignment of the virtual network ports, so that the virtual network ports can correspond to the ports, and the corresponding two can be in the same VLAN.

[0050] By virtualizing multiple network ports on the physical network ports of the CPU main control board and assigning these virtual network ports to different VLANs, and correspondingly assigning each port on the switching device to a different VLAN, communication links are formed between the virtual network ports on the CPU main control board in different VLANs and the ports on the switching device in the corresponding VLANs (the corresponding VLANs mentioned here are those corresponding to the virtual network ports). This expands the communication links, providing more communication links between the CPU main control board and the switching device to better meet the needs of more service flows. Furthermore, in this application, the CPU main control board and the switching device communicate in trunk mode, enabling communication between the CPU main control board and the switching device across various VLANs. This ensures that each communication link can exchange data between the CPU main control board and the switching device, thereby guaranteeing the effectiveness and reliability of all communication links.

[0051] VLANs provide a mechanism for physical network port isolation. Data packets sent by a member of a VLAN are only sent to other members of the same VLAN, and not to devices outside that VLAN. In other words, VLAN segmentation can isolate communication between different communication links to avoid crosstalk, thereby improving the reliability and security of communication links. Furthermore, VLAN segmentation facilitates service routing to meet the communication needs of various services. For example: Figure 2 As shown, port 1 on the switching device is assigned to VLAN-2, port x to VLAN-3, port n-1 to VLAN-4, and port n to VLAN-5. This allows the virtual network ports on the CPU main control board located in these four VLANs to form communication links with the ports on the switching device located in their corresponding VLANs. Therefore, compared to existing methods that only utilize the physical network ports on the CPU main control board, this application extends multiple communication links by virtualizing the physical network ports on the CPU main control board, thus facilitating the meeting of communication needs for more service flows.

[0052] It should be noted that the ports of the switching equipment can be connected to airborne terminal units for air-to-ground wireless links such as ATG (Air To Ground), SBB, and Ka-band, as well as airborne terminal equipment such as cabin servers and information system servers. Because this application expands the communication links for airborne servers, the airborne servers can have more communication links to connect to airborne terminal units as air-to-ground wireless links, and can connect to more airborne terminal equipment, thereby facilitating the fulfillment of communication needs for a wider range of airborne service flows.

[0053] As can be seen from the above process, this application can not only realize the construction and expansion of communication links, but also get rid of the dependence on hardware design when constructing communication links. At the same time, since it only needs to virtualize the virtual network port and divide the VLAN on the CPU main control board, the configuration and construction are relatively flexible and the cost is relatively low.

[0054] The technical solution disclosed in this application constructs more communication links by virtualizing multiple virtual network ports on each physical network port on the CPU main control board, dividing the virtual network ports into different VLANs, and dividing each port on the switching device into a corresponding different VLAN, thereby expanding the communication links and meeting the communication needs of more service flows. Among them, the division of VLANs can isolate each communication link from each other and facilitate service routing. In addition, using trunk mode for communication between the CPU main control board and the switching device can enable all communication links to interact between the two, thereby ensuring the reliability and effectiveness of the communication links.

[0055] This application provides a communication link construction method that, after virtualizing multiple virtual network ports on each physical network port of the CPU main control board, may further include...

[0056] Configure different IP addresses for each virtual network port.

[0057] After creating multiple virtual network ports on the physical network ports of the CPU main control board, different IP addresses can be configured for each virtual network port so that each virtual network port can be used as a different network port by the operating system and to avoid conflicts during communication.

[0058] The communication link construction method provided in this application embodiment, after virtualizing multiple virtual network ports on each physical network port of the CPU main control board, may further include:

[0059] Configure the corresponding physical network card for each virtual network port.

[0060] In addition, after creating multiple virtual network ports on each physical network port on the CPU main control board, a corresponding physical network card can be configured for each virtual network port. This allows each virtual network port to call its corresponding physical network card when sending data, thereby improving data transmission efficiency and preventing the virtual network ports from interfering with each other when sending data.

[0061] The communication link construction method provided in this application embodiment, after establishing a communication link between the virtual network ports on the CPU main control board located in different VLANs and the ports on the switching device located in the corresponding VLANs, may further include:

[0062] When the first IP packet is sent using the first target virtual network port on the CPU main control board, a first tag is added to the data link layer header of the first IP packet; wherein, the first tag may include the identifier of the VLAN where the first target virtual network port is located;

[0063] The physical network card corresponding to the first target virtual network port is invoked, and the first IP packet with the first tag is sent to the corresponding first target port on the switching device through the corresponding communication link. The switching device then removes the first tag from the first IP packet with the first tag added, and sends the first IP packet with the first tag removed to the device connected to the first target port through the first target port.

[0064] In this application, after establishing a communication link between virtual network ports on the CPU main control board located in different VLANs and ports on the switching device located in corresponding VLANs, when a first IP packet is sent using the first target virtual network port on the CPU main control board, the 802.1q kernel module can be invoked. This 802.1q kernel module adds a first tag to the data link layer header of the first IP packet, where the first tag includes the identifier of the VLAN where the first target virtual network port is located. For details, see [link to relevant documentation]. Figure 3 It illustrates a schematic diagram of the structure of an IP packet provided in an embodiment of this application. When an IP packet is sent using a virtual network interface, the standard IP packet (which corresponds to...) Figure 3 The first line of the packet contains five fields: DA, SA, Type, Payload, and CRC. A Tag field is added between the SA and Type fields. (IP packets with the Tag field are IP packets with the IEEE 802.1Q tag, i.e.) Figure 3 The second and third lines in the image are IP packets with the IEEE 802.1Q tag. The Tag field occupies 4 bytes. It should be noted that in a standard IP packet, DA corresponds to the destination MAC address, SA corresponds to the source MAC address, Type corresponds to the frame type, CRC corresponds to the CRC checksum, and Payload corresponds to the payload. The newly added Tag is the aforementioned tag, and the Tag includes two parts: TPID (Etype) and TCI (Tag Control Info).

[0065] a) TPIA: 2 bytes, fixed at 0x8100, indicating that the message encapsulation type is IEEE 802.1Q encapsulation;

[0066] b) TCI: 2 bytes, containing three parts: Priority, CFI, and VLAN-ID;

[0067] 1) Priority: 3 bits in length, representing the priority of the IEEE 802.1Q frame. There are 8 priority levels, ranging from 0 to 7. When a switch is congested, it prioritizes sending packets with higher priority.

[0068] 2) CFI: In Ethernet switches, the canonical format indicator is always set to 0;

[0069] 3) VLAN ID: The VLAN identification field, 12 bits long, used to store the identifier of the VLAN to which the virtual network interface belongs. The VLAN ID supports 4096 (2... 12 There are 4094 VLANs, where ID 0 is used to identify frame priority, ID 4095 is a reserved value, and the maximum number of VLANs is 4094. ID 1 is the default VLAN. In other words, in this application, each physical network port can theoretically virtualize up to 4094 virtual network ports.

[0070] After the first tag is added to the data link layer header of the first IP packet, the operating system can call the physical network card corresponding to the first target virtual network interface and send the first IP packet with the first tag added to the corresponding first target port on the switching device through the communication link corresponding to the first virtual network interface (the specific communication link can be determined according to the tag in the first IP packet). The switching device then removes the first tag from the first IP packet with the first tag added (i.e., obtains the standard first IP packet) and sends the first IP packet with the first tag removed to the device connected to the first target port through the first target port.

[0071] As can be seen from the above process, this application carries corresponding VLAN tags in the IP packets when sending IP packets on the airborne server. This facilitates communication link routing and allows for communication using the corresponding communication links. Furthermore, this application allows IP packets exchanged between the CPU main control board and the switching equipment to carry different tags, enabling interaction through various VLANs, thereby ensuring the reliability and effectiveness of the communication links. Additionally, removing the tags from the IP packets when leaving the airborne server ensures that the corresponding external devices can receive the IP packets, avoiding reception failures and improving the reliability of IP packet transmission.

[0072] The communication link construction method provided in this application embodiment, after establishing a communication link between the virtual network ports on the CPU main control board located in different VLANs and the ports on the switching device located in the corresponding VLANs, may further include:

[0073] When the switching device receives a second IP packet from the outside through the second destination port, it adds a second tag to the data link layer header of the second IP packet; the second tag may include the identifier of the VLAN where the second destination port is located;

[0074] The second IP packet with the second tag is sent to the corresponding second virtual network port on the CPU main control board through the corresponding communication link. The CPU main control board then removes the second tag from the second IP packet to obtain the second IP packet and sends the second IP packet to the third virtual network port.

[0075] A third tag is added to the data link layer header of the second IP packet; the third tag may include the identifier of the VLAN where the third target virtual network interface is located;

[0076] The physical network interface card corresponding to the third target virtual network port is invoked, and the second IP packet with the third tag is sent to the corresponding third target port on the switching device through the corresponding communication link. The switching device then removes the third tag from the second IP packet with the third tag added, and sends the second IP packet with the third tag removed to the device connected to the third target port through the third target port.

[0077] In this application, after establishing a communication link between the virtual network ports on the CPU main control board located in different VLANs and the ports on the switching device located in the corresponding VLANs, if the switching device receives a second IP packet sent by an external device through the second target port, it invokes the 802.1q kernel module to add a second tag to the data link layer header of the second IP packet. The second tag includes the identifier of the VLAN where the second target port is located. Specifically, this can be combined with... Figure 3 The corresponding descriptions will not be repeated here, so as to facilitate the identification of the corresponding communication link through the added tags and the use of the corresponding communication link to send IP packets.

[0078] After adding a second tag to the second IP packet, the tagged second IP packet is sent to the corresponding second virtual network port on the CPU main control board through the corresponding communication link (specifically determined by the second tag in the second IP packet). Upon receiving the tagged second IP packet, the second virtual network port on the CPU main control board can remove the second tag to obtain the original second IP packet. Then, the CPU main control board sends the original second IP packet (with the second tag removed) to the third virtual network port according to the transmission requirements.

[0079] After sending the second IP packet to the third virtual network interface on the CPU main control board, the 802.1q kernel module can be invoked to add a third tag to the data link layer header of the second IP packet. This third tag includes the identifier of the VLAN where the third target virtual network interface resides. Specifically, this can be combined with... Figure 3 The corresponding explanations will not be repeated here, to facilitate the selection of the corresponding communication link through the added tags. Then, the physical network interface card corresponding to the third target virtual network port can be invoked to send the second IP packet with the added third tag to the corresponding third target port on the switching device through the corresponding communication link. Then, the switching device removes the third tag from the second IP packet and sends the second IP packet with the removed third tag through the third target port to the device connected to the third target port.

[0080] Through the above process, this application adds VLAN tags to data entering the airborne server, facilitating the selection of the corresponding communication link based on the VLAN tag and the use of that link for data transmission. When the data with the added VLAN tag reaches the receiving end in the airborne server, the VLAN tag is removed to allow for subsequent data flow. Specifically, if the data flows to other virtual network ports on the CPU main control board or ports of the switching device in the airborne server, it facilitates the addition of the corresponding VLAN tag. If the data flows to external devices, it ensures that the external devices can receive standard data (i.e., data without VLAN tags). Furthermore, as can be seen from the above process, this application allows data carrying various VLAN tags to interact between the CPU main control board and the switching device, thereby ensuring the reliability and effectiveness of the established communication links.

[0081] The communication link construction method provided in this application embodiment may further include, before assigning each port of the switching device connected to the CPU main control board to different VLANs:

[0082] Multiple virtual ports are created on each port of the switching device;

[0083] Accordingly, the ports on the switching equipment connected to the CPU main control board are assigned to different VLANs, which may include:

[0084] Each virtual port on the switching device is assigned to a different VLAN.

[0085] In this application, before assigning each port on the switching device connected to the CPU main control board to different VLANs, multiple virtual ports can be created on each port of the switching device, and each virtual port on the switching device can be assigned to different VLANs. This allows virtual network ports in different VLANs to form communication links with virtual ports in their corresponding VLANs, thereby creating more communication links to meet the communication needs of more service flows.

[0086] This application also provides a communication link construction device, see [link to previous document]. Figure 4 It shows a schematic diagram of the structure of a communication link building device provided in an embodiment of this application, which may include:

[0087] The first virtual module 41 is used to create multiple virtual network ports on each physical network port on the CPU main control board and assign each virtual network port to a different VLAN.

[0088] The partitioning module 42 is used to partition each port on the switching device connected to the CPU main control board into different VLANs, so that the virtual network ports on the CPU main control board in different VLANs and the ports on the switching device in the corresponding VLANs can form a communication link; wherein, the CPU main control board and the switching device communicate in trunk mode.

[0089] The communication link building apparatus provided in this application embodiment may further include:

[0090] The first configuration module is used to configure different IP addresses for each virtual network port after creating multiple virtual network ports on each physical network port of the CPU main control board.

[0091] The communication link building apparatus provided in this application embodiment may further include:

[0092] The second configuration module is used to configure the corresponding physical network card for each virtual network port after creating multiple virtual network ports on each physical network port on the CPU main control board.

[0093] The communication link building apparatus provided in this application embodiment may further include:

[0094] The first addition module is used to add a first tag to the data link layer header of the first IP packet when the first target virtual network port on the CPU main control board sends the first IP packet after establishing a communication link between the virtual network port on the CPU main control board in different VLANs and the port on the switching device in the corresponding VLAN. The first tag may include the identifier of the VLAN where the first target virtual network port is located.

[0095] The first calling module is used to call the physical network card corresponding to the first target virtual network port, send the first IP packet with the first tag added to it to the corresponding first target port on the switching device through the corresponding communication link, and the switching device removes the first tag from the first IP packet with the first tag added to it, and sends the first IP packet with the first tag removed to the device connected to the first target port through the first target port.

[0096] The communication link building apparatus provided in this application embodiment may further include:

[0097] The second addition module is used to add a second tag to the data link layer header of the second IP packet when the switching device receives the second IP packet from the outside through the second target port after establishing a communication link between the virtual network ports in different VLANs on the CPU main control board and the ports in the corresponding VLANs on the switching device; wherein the second tag may include the identifier of the VLAN in which the second target port is located.

[0098] The sending module is used to send the second IP packet with the second tag added to it to the corresponding second virtual network port on the CPU main control board through the corresponding communication link. The CPU main control board removes the second tag from the second IP packet with the second tag added to it to obtain the second IP packet, and then sends the second IP packet to the third virtual network port.

[0099] The third addition module is used to add a third tag to the data link layer header of the second IP packet; wherein, the third tag may include the identifier of the VLAN where the third target virtual network interface is located;

[0100] The second calling module is used to call the physical network card corresponding to the third target virtual network port, send the second IP packet with the third tag added to it to the corresponding third target port on the switching device through the corresponding communication link, and the switching device removes the third tag from the second IP packet with the third tag added to it, and sends the second IP packet with the third tag removed to the device connected to the third target port through the third target port.

[0101] The communication link building apparatus provided in this application embodiment may further include:

[0102] The second virtual module is used to create multiple virtual ports on each port of the switching device before assigning each port of the switching device connected to the CPU main control board to different VLANs.

[0103] Accordingly, the partitioning module 42 may include:

[0104] The partitioning unit is used to assign each virtual port on the switching device to a different VLAN.

[0105] This application also provides a communication link building device, see [link to relevant documentation]. Figure 5 It shows a schematic diagram of the structure of a communication link building device provided in an embodiment of this application, which may include:

[0106] Memory 51 is used to store computer programs;

[0107] When processor 52 executes a computer program stored in memory 51, it can perform the following steps:

[0108] Multiple virtual network ports are created on each physical network port on the CPU main control board, and each virtual network port is assigned to a different VLAN. Each port on the switching device connected to the CPU main control board is assigned to a different VLAN, so that the virtual network ports on the CPU main control board in different VLANs and the ports on the switching device in the corresponding VLANs can form a communication link. The CPU main control board and the switching device communicate in trunk mode.

[0109] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can perform the following steps:

[0110] Multiple virtual network ports are created on each physical network port on the CPU main control board, and each virtual network port is assigned to a different VLAN. Each port on the switching device connected to the CPU main control board is assigned to a different VLAN, so that the virtual network ports on the CPU main control board in different VLANs and the ports on the switching device in the corresponding VLANs can form a communication link. The CPU main control board and the switching device communicate in trunk mode.

[0111] The computer-readable storage medium may include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0112] For a description of the relevant parts of the communication link construction apparatus, device and computer-readable storage medium provided in the embodiments of this application, please refer to the detailed description of the corresponding parts in the communication link construction method provided in the embodiments of this application, and will not be repeated here.

[0113] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that the elements inherent in a process, method, article, or apparatus that includes a list of elements are included. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element. Additionally, portions of the technical solutions provided in the embodiments of this application that are consistent with the implementation principles of corresponding technical solutions in the prior art have not been described in detail to avoid excessive elaboration.

[0114] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for constructing a communication link, characterized in that, include: By running a Linux operating system on the CPU main control board of the airborne server, multiple virtual network ports are created on each physical network port on the CPU main control board, and each virtual network port is assigned to a different VLAN; the Linux operating system supports kernel modules that conform to the IEEE 802.1Q protocol. Each port on the switching device connected to the CPU main control board is assigned to a different VLAN, so that the virtual network ports on the CPU main control board in different VLANs and the ports on the switching device in the corresponding VLANs form a communication link; wherein, the CPU main control board and the switching device communicate in trunk mode. After creating multiple virtual network ports on each physical network port of the CPU main control board, the process further includes: Configure a corresponding physical network card for each of the virtual network ports; After establishing communication links between the virtual network ports on the CPU main control board located in different VLANs and the ports on the switching device located in the corresponding VLANs, the process further includes: When a first IP packet is sent using the first target virtual network port on the CPU main control board, a first tag is added to the data link layer header of the first IP packet; wherein, the first tag includes the identifier of the VLAN where the first target virtual network port is located; The physical network interface card corresponding to the first target virtual network port is invoked, and the first IP packet with the first tag is sent to the corresponding first target port on the switching device through the corresponding communication link. The switching device then removes the first tag from the first IP packet with the first tag and sends the first IP packet with the first tag removed to the device connected to the first target port through the first target port.

2. The communication link construction method according to claim 1, characterized in that, After creating multiple virtual network ports on each physical network port of the CPU main control board, it also includes... Configure different IP addresses for each of the virtual network ports.

3. The communication link construction method according to claim 1, characterized in that, After establishing communication links between the virtual network ports on the CPU main control board located in different VLANs and the ports on the switching device located in the corresponding VLANs, the process further includes: When the switching device receives a second IP packet from the outside through the second target port, it adds a second tag to the data link layer header of the second IP packet; wherein, the second tag includes the identifier of the VLAN where the second target port is located; The second IP packet with the second tag is sent to the corresponding second target virtual network port on the CPU main control board through the corresponding communication link. The CPU main control board then removes the second tag from the second IP packet with the second tag to obtain the second IP packet, and sends the second IP packet to the third target virtual network port. A third tag is added to the data link layer header of the second IP packet; wherein the third tag includes the identifier of the VLAN where the third target virtual network interface is located; The physical network interface card corresponding to the third target virtual network port is invoked, and the second IP packet with the third tag is sent to the corresponding third target port on the switching device through the corresponding communication link. The switching device then removes the third tag from the second IP packet with the third tag and sends the second IP packet with the third tag removed to the device connected to the third target port through the third target port.

4. The communication link construction method according to any one of claims 1 to 3, characterized in that, Before assigning each port on the switching device connected to the CPU main control board to a different VLAN, the process also includes: Multiple virtual ports are created on each port of the switching device; Accordingly, each port on the switching device connected to the CPU main control board is assigned to a different VLAN, including: Each virtual port on the switching device is assigned to a different VLAN.

5. A communication link construction device, characterized in that, include: The virtual module is used to run a Linux operating system on the CPU main control board of the onboard server to create multiple virtual network ports on each physical network port on the CPU main control board, and to assign each virtual network port to a different VLAN; the Linux operating system supports kernel modules that conform to the IEEE 802.1Q protocol. The partitioning module is used to partition each port on the switching device connected to the CPU main control board into different VLANs, so that the virtual network ports on the CPU main control board in different VLANs and the ports on the switching device in the corresponding VLANs can form communication links; wherein, the CPU main control board and the switching device communicate in trunk mode. The communication link construction device further includes: The second configuration module is used to configure a corresponding physical network card for each virtual network port after multiple virtual network ports are created on each physical network port on the CPU main control board. The communication link construction device further includes: The first addition module is used to add a first tag to the data link layer header of the first IP packet when the first target virtual network port on the CPU main control board sends the first IP packet after establishing a communication link between the virtual network port on the CPU main control board in different VLANs and the port on the switching device in the corresponding VLAN. The first tag includes the identifier of the VLAN where the first target virtual network port is located. The first calling module is used to call the physical network card corresponding to the first target virtual network port, send the first IP packet with the first tag added to it to the corresponding first target port on the switching device through the corresponding communication link, and the switching device removes the first tag from the first IP packet with the first tag added to it, and sends the first IP packet with the first tag removed to the device connected to the first target port through the first target port.

6. The communication link construction apparatus according to claim 5, characterized in that, Also includes: The first configuration module is used to configure different IP addresses for each virtual network port after creating multiple virtual network ports on each physical network port of the CPU main control board.

7. A communication link construction device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the communication link construction method as described in any one of claims 1 to 4 when executing the computer program.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the communication link construction method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Technique for sharing a physical port among a plurality of virtual bridges on a switch

    CN101491014A