CN110224917B - Data transmission method, device and system and server - Google Patents

Data transmission method, device and system and server Download PDF

Info

Publication number
CN110224917B
CN110224917B CN201810175076.6A CN201810175076A CN110224917B CN 110224917 B CN110224917 B CN 110224917B CN 201810175076 A CN201810175076 A CN 201810175076A CN 110224917 B CN110224917 B CN 110224917B
Authority
CN
China
Prior art keywords
server
data
network card
vlan
data transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810175076.6A
Other languages
Chinese (zh)
Other versions
CN110224917A (en
Inventor
徐新刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201810175076.6A priority Critical patent/CN110224917B/en
Publication of CN110224917A publication Critical patent/CN110224917A/en
Application granted granted Critical
Publication of CN110224917B publication Critical patent/CN110224917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Abstract

The application discloses a data transmission method, a data transmission device, a data transmission system and a server, and belongs to the technical field of communication. The method is applied to a first target server in a data transmission system, and the data transmission system comprises: a second server, a plurality of first servers connected to the second server, the first target server being any one of the plurality of first servers, the method comprising: constructing a first Virtual Local Area Network (VLAN) based on the physical network cards in the plurality of first servers; configuring a virtual network card in the first target server based on the physical network card in the first target server; constructing a second VLAN where the virtual network card is located based on the virtual network card; and sending first data to other first servers connected with the first target server through the first VLAN, and sending second data to the second server through the second VLAN. The invention can realize the separated transmission of the first data and the second data.

Description

Data transmission method, device and system and server
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data transmission method, apparatus and system, and a server.
Background
The data transmission system comprises a management server and a data server, wherein management data can be transmitted between the data server and the management server so that the management server can manage the data server, and service data can be transmitted between a plurality of data servers so as to realize different communication services, such as: by transmitting business data between a plurality of data servers, business functions such as computing services or WEB (WEB) applications can be realized.
In the related art, a data server is generally configured with two network ports, wherein one network port is a management network port, the management network port is used for transmitting management data, and the other network port is a data network port, and the data network port is used for transmitting service data.
However, with the development of communication technology, devices with a single network port (for example, System on Chip (SoC)) are applied to processing centers such as data centers and monitoring centers related to data transmission systems, and under the trend, only one network port may be configured on a server.
Disclosure of Invention
The application provides a data transmission method, a data transmission device, a data transmission system and a server, and under the condition that a first server only has one internet access which can be used for transmitting data, the separate transmission of management data and service data can be realized. The technical scheme is as follows:
In a first aspect, a data transmission method is provided, where the method is applied to a first target server in a data transmission system, and the data transmission system includes: a second server, and a plurality of first servers connected to the second server, the first target server being any one of the plurality of first servers, the method comprising:
constructing a first Virtual Local Area Network (VLAN) based on the physical network cards in the plurality of first servers;
configuring a virtual network card in the first target server based on the physical network card in the first target server;
constructing a second VLAN where the virtual network card is located based on the virtual network card;
and sending first data to other first servers connected with the first target server through the first VLAN, and sending second data to the second server through the second VLAN.
Optionally, the sending, by the first VLAN, first data to other first servers connected to the first target server includes:
sending the first data to the physical network card;
based on the first VLAN, the first data are sent to the other first servers through the network ports of the physical network cards;
The sending second data to the second server over the second VLAN includes:
sending the second data to the physical network card through the virtual network card;
and based on the second VLAN, the second data is sent to the second server through the network port of the physical network card.
Optionally, the first data is service data, and the service data is used for the first target server to implement a communication service with the other first servers;
the second data is management data, and the management data is used for the second server to manage the first target server.
Optionally, the first target server is configured with a portal.
Optionally, the second server is configured to manage the first server, and after configuring a virtual network card in the first target server based on the physical network card in the first target server, the method further includes:
and receiving an Internet Protocol (IP) address redistributed by the second server, wherein the redistributed IP address is allocated to the virtual network card and/or the physical network card by the second server based on a Dynamic Host Configuration Protocol (DHCP) when the IP address of the virtual network card is determined to be the same as the IP address of the physical network card by the second server.
Optionally, the connecting the first target server and the second server through a switch, where a virtual network card is configured in the second server, and the constructing a second VLAN where the virtual network card is located based on the virtual network card includes:
and constructing the second VLAN based on the switch, the virtual network card in the first target server and the virtual network card in the second server.
In a second aspect, there is provided a data transmission apparatus, the apparatus comprising:
the first constructing module is used for constructing a first Virtual Local Area Network (VLAN) based on the physical network cards in the plurality of first servers;
the configuration module is used for configuring a virtual network card in the first target server based on the physical network card in the first target server;
the second constructing module is used for constructing a second VLAN where the virtual network card is located based on the virtual network card;
a first sending module, configured to send first data to other first servers connected to the first target server through the first VLAN;
and the second sending module is used for sending second data to the second server through the second VLAN.
Optionally, the first sending module is configured to:
Sending the first data to the physical network card;
based on the first VLAN, the first data are sent to the other first servers through the network ports of the physical network cards;
the second sending module is configured to:
sending the second data to the physical network card through the virtual network card;
and based on the second VLAN, the second data is sent to the second server through the network port of the physical network card.
Optionally, the first data is service data, and the service data is used for the first target server to implement a communication service with the other first servers;
the second data is management data, and the management data is used for the second server to manage the first target server.
Optionally, the first target server is configured with a portal.
Optionally, the second server is configured to manage the first server, and the apparatus further includes, based on a physical network card in the first target server:
and the receiving module is used for receiving the internet protocol IP address redistributed by the second server, wherein the redistributed IP address is allocated to the virtual network card and/or the physical network card by the second server based on a Dynamic Host Configuration Protocol (DHCP) when the IP address of the virtual network card is determined to be the same as the IP address of the physical network card by the second server.
Optionally, the first target server is connected to the second server through a switch, a virtual network card is configured in the second server, and the second building module is configured to:
and constructing the second VLAN based on the switch, the virtual network card in the first target server and the virtual network card in the second server.
In a third aspect, a data transmission system is provided, which includes: at least one data transmission subsystem;
each data transmission subsystem includes: a second server, and a plurality of first servers connected to the second server;
wherein the first server is configured to execute the data transmission method according to any one of the first aspect.
Optionally, in the data transmission system, each data transmission subsystem belongs to the same second VLAN, and the multiple data transmission subsystems belong to different second VLANs.
Optionally, each data transmission subsystem further comprises: a switch, the first server comprising: a blade server, the switch comprising: a network switch board.
In a fourth aspect, there is provided a server comprising a processor and a memory,
Wherein the content of the first and second substances,
the memory is used for storing a computer program;
the processor is configured to execute the program stored in the memory, and implement the data transmission method according to any one of the first aspect.
The beneficial effect that technical scheme that this application provided brought is:
according to the data transmission method, the device and the system, and the servers provided by the embodiments of the invention, the first VLAN is constructed based on the physical network cards in the plurality of first servers, the virtual network card is configured in the first target server based on the physical network card in the first target server, the second VLAN where the virtual network card is located is constructed based on the virtual network card, the first data is sent to other first servers connected with the first target server through the first VLAN, and the second data is sent to the second server through the second VLAN, so that the first data and the second data can be separately transmitted under the condition that the first server only has one network port which can be used for transmitting data, and the effective transmission of the data is further ensured.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a data transmission system according to a data transmission method provided in an embodiment of the present invention;
fig. 2 is a flowchart of a data transmission method according to an embodiment of the present invention;
fig. 3 is a flowchart of another data transmission method according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for sending second data to a second server through a second VLAN according to an embodiment of the present invention;
fig. 5 is a schematic diagram of data transmission in a data transmission system according to an embodiment of the present invention;
fig. 6 is a flowchart of a method for sending first data to other first servers connected to a first target server through a first VLAN according to an embodiment of the present invention;
fig. 7A is a schematic structural diagram of a data transmission device according to an embodiment of the present invention;
fig. 7B is a schematic structural diagram of another data transmission apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a data transmission system according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another data transmission system according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a data transmission system according to a data transmission method provided by an embodiment of the present invention. As shown in fig. 1, the data transmission system may include: a second server 110 and a plurality of first servers 120 connected to the second server 110. The second server 110 is configured to manage the first server 120, and both the second server 110 and the first server 120 may be a server, a server cluster composed of a plurality of servers, or a cloud computing service center. Alternatively, the first server 120 may be any other SoC or Central Processing Unit (CPU) having an Internet Protocol (IP) address. Also, the first server 120 has only one port, or only one port of the first server 120 is available for transmitting data, i.e. only one port is used for out-of-band processing.
The second server 110 and the first server 120 may be connected via a switch. In the data transmission system, first data may be transmitted between a plurality of first servers 120, and second data may be transmitted between the second server 110 and the first servers 120. Optionally, the first data may be service data, and the service data may be used to implement communication services between multiple first servers 120, for example: the first server 120 can implement business functions such as computing services or WEB applications based on the business data. The second data may be management data for the second server 110 to manage the first server 120, such as: the second server 110 may monitor the operation status of the first server 120 based on the management data, or assign an IP address to the first server 120, or the like.
An embodiment of the present invention provides a data transmission method, which may be applied to the first server 120 in the data transmission system shown in fig. 1, where the embodiment of the present invention takes a first target server as an example to describe the first target server, and the actions of other first servers 120 may refer to the actions of the first target server, and the first target server is any one of a plurality of first servers, as shown in fig. 2, the method may include:
step 201, a first VLAN is constructed based on the physical network cards in the plurality of first servers.
Step 202, configuring a virtual network card in the first target server based on the physical network card in the first target server.
And 203, constructing a second VLAN where the virtual network card is located based on the virtual network card.
And step 204, sending the first data to other first servers connected with the first target server through the first VLAN.
Step 205, sending the second data to the second server through the second VLAN.
In summary, in the data transmission method provided in the embodiment of the present invention, a first VLAN is constructed based on a physical network card in a plurality of first servers, a virtual network card is configured in a first target server based on the physical network card in the first target server, a second VLAN where the virtual network card is located is constructed based on the virtual network card, and first data is sent to other first servers connected to the first target server through the first VLAN, and second data is sent to the second server through the second VLAN.
An embodiment of the present invention provides a data transmission method, which may be applied to the first server 120 in the data transmission system shown in fig. 1, where the embodiment of the present invention is described by taking as an example that the first target server and the first target server have one internet access, and the actions of the other first servers 120 may refer to the first target server, and the first target server is any one of a plurality of first servers, as shown in fig. 3, the method may include:
step 301, the first target server constructs a first VLAN based on the physical network cards in the plurality of first servers.
A Virtual Local Area Network (VLAN) is a group of logical devices and users, which are not limited by physical locations and can be organized according to functions, departments, applications, and other factors. Due to the communication between these devices and users, these devices and users can be considered to be in the same network segment, and thus the organized network is referred to as a virtual local area network. VLAN is a relatively new technology that works at layers 2 and 3 of the Open System Interconnection (OSI) reference model, one VLAN can be considered as a broadcast domain, and communication between VLANs is accomplished through a layer 3 router. Compared with the traditional local area network technology, the VLAN technology is more flexible and has the following advantages: the management overhead of the movement, addition and modification of network equipment is small, and the network equipment can control broadcast activities and improve the security of the network.
Generally, before executing this step 301, the hardware deployment of the data transmission system is completed, that is, the servers included in the data transmission system and the hardware connection relationship between the servers are determined, for example: it is determined that the data transmission system includes a second server and a plurality of first servers, each of the first servers is connected to the second server, and the plurality of first servers are connected to each other through a switch, the switch supports the VLAN technology, and the second server and each of the first servers are configured with a physical network card, at this time, the implementation manner of step 301 may include: a first VLAN is constructed based on the physical network card in the switch and each first server to prepare for data transmission in the data transmission system.
Step 302, the first target server configures a virtual network card in the first target server based on the physical network card in the first target server.
Optionally, the first target server may configure the virtual network card based on the physical network card in the first target server according to an instruction for configuring the virtual network card sent by the user to the first target server.
Step 303, the first target server constructs a second VLAN where the virtual network card is located based on the virtual network card.
The first target server and the second server may be connected through a switch supporting the VLAN technology, and a virtual network card is also configured in the second server, at this time, an implementation manner of step 303 may include: and constructing a second VLAN based on the switch, the virtual network card in the first target server and the virtual network card in the second server.
Optionally, the first target server may construct the second VLAN based on the virtual network card in the first target server and the virtual network card in the second server according to a VLAN configuration command (for example, a vconfig command) sent to the first target server by the user.
It should be noted that, after the first VLAN and the second VLAN are constructed, a data transmission path belonging to the first VLAN and a data transmission path belonging to the second VLAN can be established, and an IP network segment to which a physical network card of the first target server belongs is different from an IP network segment to which a virtual network card belongs, so that isolation can be formed between data transmitted based on the first VLAN and data transmitted based on the second VLAN, interference between data transmitted based on the first VLAN and the second VLAN is not generated, and accuracy of data transmission is further ensured.
For example, after the first VLAN and the second VLAN are constructed, it is assumed that in the first VLAN, an IP network segment where a physical network card of the first target server is located is 192.168.0.0/24 network segment, and in the second VLAN, an IP network segment where a virtual network card of the first target server is located is 192.168.1.0/24 network segment, and IP network segments of the two are different from each other.
And step 304, the first target server receives the internet protocol IP address redistributed by the second server, wherein the redistributed IP address is distributed for the virtual network card and/or the physical network card by the second server based on DHCP when the IP address of the virtual network card is determined to be the same as the IP address of the physical network card by the second server.
After the first VLAN and the second VLAN are constructed, if the network is maintained or modified, the IP address of the physical network card in the first VLAN and the IP address of the virtual network card in the second VLAN may change, which may cause the changed IP address of the virtual network card to be the same as the changed IP address of the physical network card (i.e., the IP addresses of the two conflict with each other), and at this time, if data transmission is performed based on the virtual network card and/or the physical network card, a transmission error may occur in the transmitted management data and service data.
For this situation, when the second server determines that the IP address of the virtual network card is the same as the IP address of the physical network card, the second server may reallocate the IP address for the virtual network card and/or the physical network card based on a Dynamic Host Configuration Protocol (DHCP), so as to ensure that the IP network segment to which the virtual network card belongs is different from the IP network segment to which the physical network card belongs, thereby ensuring the accuracy of data transmission.
The DHCP is a network Protocol of a local area network, and operates based on a User Datagram Protocol (UDP), and the DPCH is mainly used for: an IP address is automatically assigned to an internal network or network service provider of the local area network, and a right to manage all computers is assigned to a user of the local area network or an internal network administrator.
For example, it is assumed that an IP network segment to which a virtual network card belongs is different from an IP network segment to which a physical network card belongs by default in a certain data transmission system, and the IP network segment to which the virtual network card belongs is 192.168.1.0/24, and in a certain network modification, the IP network segment to which the physical network card belongs is modified to be 192.168.1.0/24, which causes a conflict between the IP network segment of the physical network card and the IP network segment of the virtual network card, at this time, the second server may reallocate an IP address for the physical network card based on DHCP, and the first target server may ensure that the IP network segment to which the virtual network card belongs is different from the IP network segment to which the physical network card belongs after receiving the IP address reallocated for the physical network card by the second server.
It should be noted that, when the second server reallocates the IP network segments to the plurality of first servers in the data transmission system, the second server may modify only the IP of the network managed by the second server, that is, may modify the IP network segments to which the virtual network cards of the plurality of first servers belong, that is, may reallocate the IP network segments of the virtual network cards.
And 305, when the data to be sent is second data, the first target server sends the second data to the second server through the second VLAN.
The second data may be management data, and the management data is used for the second server to manage the first target server.
Optionally, referring to fig. 4, the implementation process of this step 305 may include:
3051, the first target server sends the second data to the physical network card through the virtual network card.
3052, the first target server sends the second data to the second server through the internet access of the physical network card based on the second VLAN.
Referring to fig. 5, it is assumed that the data transmission system includes a second server and two first servers, the two servers are a first target server and another first server, respectively, an IP address of a physical network card eth0 of the first target server is 192.168.0.1, and based on a virtual network card eth0 configured in a physical network card eth0 of the first target server: the IP address of the VLAN 100 is 192.168.1.1, the IP address of the physical network card eth0 of the another first server is 192.168.0.2, and the virtual network card eth0 configured based on the physical network card eth0 of the another first server: the IP address of the VLAN 100 is 192.168.1.2, the IP address of the physical network card eth0 of the second server is 192.168.0.3, and based on the virtual network card eth0 configured by the physical network card eth0 in the second server: the IP address of the VLAN 100 is 192.168.1.3, and a first VLAN is constructed based on the physical network card eth0 of the first target server, the physical network card eth0 of the another first server, and the physical network card eth0 of the second server, and based on the virtual network card eth0 of the first target server: VLAN 100, virtual network card eth0 of the other first server: VLAN 100 and virtual network card eth0 of the second server: VLAN 100 constructs a second VLAN, and when the first target server sends the second data to the second server, the first target server may first send the second data through a virtual network card eth 0: VLAN 100 sends the second data to the second server through the portal of physical network card eth0 based on the second VLAN, which is sent to physical network card eth0, and the data transmission path refers to the path shown by the solid line in the figure.
Step 306, when the data to be sent is the first data, the first target server sends the first data to other first servers connected with the first target server through the first VLAN.
The first data is service data, and the service data is used for the first target server to realize communication service with other first servers.
Optionally, referring to fig. 6, the implementation process of this step 306 may include:
step 3061, the first target server sends the first data to the physical network card.
Step 3062, the first target server sends the first data to other first servers through the network port of the physical network card based on the first VLAN.
Referring to fig. 5, when the first target server sends the first data to the other first server, the first data may be sent to the physical network card eth0 of the first target server, and based on the first VLAN, the first data is sent to the other first server through the portal of the physical network card eth0 of the first target server, and the data transmission path refers to the path shown by the dotted line in the figure.
When the data transmission method provided by the embodiment of the invention is used for data transmission, because the paths of the first data and the second data for data transmission are different and the data to be transmitted can only be transmitted in the corresponding transmission paths, the transmitted first data and the transmitted second data cannot interfere with each other, and the first data and the second data can be separately transmitted.
In practical applications, the management data may be transmitted through a second VLAN constructed based on the virtual network card, and the service data may be transmitted through a first VLAN constructed based on the physical network card, or the service data may be transmitted through the second VLAN and the management data may be transmitted through the first VLAN. In fig. 2 and fig. 3, the data transmission method provided in the embodiment of the present invention is described by taking only the case where the management data is transmitted through the second VLAN and the service data is transmitted through the first VLAN, and when the service data is transmitted through the second VLAN and the management data is transmitted through the first VLAN, the implementation manner thereof may refer to the implementation manner shown in fig. 2 or fig. 3, which is not described again here.
Moreover, in practical applications, the frequency and the data volume of the service data to be transmitted are large, so that the management data is generally transmitted through the second VLAN, and the service data is transmitted through the first VLAN, so as to ensure the bandwidth of the transmitted service data, thereby ensuring the effective transmission of the data.
In summary, in the data transmission method provided in the embodiment of the present invention, a first VLAN is constructed based on a physical network card in a plurality of first servers, a virtual network card is configured in a first target server based on the physical network card in the first target server, a second VLAN where the virtual network card is located is constructed based on the virtual network card, and first data is sent to other first servers connected to the first target server through the first VLAN, and second data is sent to the second server through the second VLAN.
It should be noted that, the order of the steps of the data transmission method provided in the embodiment of the present invention may be appropriately adjusted, and the steps may also be increased or decreased according to the circumstances, and any method that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention, and therefore, the details are not described again.
An embodiment of the present invention provides a data transmission apparatus, as shown in fig. 7A, the data transmission apparatus 700 may include:
a first constructing module 701, configured to construct a first virtual local area network VLAN based on a physical network card in a plurality of first servers.
A configuration module 702, configured to configure a virtual network card in a first target server based on a physical network card in the first target server.
The second constructing module 703 is configured to construct, based on the virtual network card, a second VLAN where the virtual network card is located.
A first sending module 704, configured to send the first data to the other first servers connected to the first target server through the first VLAN.
A second sending module 705, configured to send the second data to the second server through the second VLAN.
In summary, in the data transmission device provided in the embodiment of the present invention, the first building module builds the first VLAN based on the physical network card in the plurality of first servers, the configuration module configures the virtual network card in the first target server based on the physical network card in the first target server, the second building module builds the second VLAN where the virtual network card is located based on the virtual network card, the first sending module sends the first data to the other first servers connected to the first target server through the first VLAN, and the second sending module sends the second data to the second server through the second VLAN, so that the first data and the second data can be separately transmitted under the condition that the first server only has one portal that can be used for transmitting data, and effective transmission of the data is further ensured.
Optionally, a first sending module 704 is configured to:
and sending the first data to the physical network card.
And based on the first VLAN, the first data are sent to other first servers through the network ports of the physical network cards.
A second sending module 705, configured to:
and sending the second data to the physical network card through the virtual network card.
And based on the second VLAN, sending the second data to a second server through the network port of the physical network card.
Optionally, the first data is service data, and the service data is used for the first target server to implement communication service with the other first servers.
The second data is management data, and the management data is used for the second server to manage the first target server.
Optionally, the first target server is configured with a portal.
Optionally, the second server is configured to manage the first server, and referring to fig. 7B, the apparatus 700 may further include:
a receiving module 706, configured to receive an internet protocol IP address reallocated by the second server, where the reallocated IP address is allocated to the virtual network card and/or the physical network card by the second server based on a dynamic host configuration protocol DHCP when it is determined that the IP address of the virtual network card is the same as the IP address of the physical network card.
Optionally, the first target server is connected to the second server through a switch, the second server is configured with a virtual network card, and the second constructing module 703 is configured to:
and constructing a second VLAN based on the switch, the virtual network card in the first target server and the virtual network card in the second server.
In summary, in the data transmission device provided in the embodiment of the present invention, the first building module builds the first VLAN based on the physical network card in the plurality of first servers, the configuration module configures the virtual network card in the first target server based on the physical network card in the first target server, the second building module builds the second VLAN where the virtual network card is located based on the virtual network card, the first sending module sends the first data to the other first servers connected to the first target server through the first VLAN, and the second sending module sends the second data to the second server through the second VLAN, so that the first data and the second data can be separately transmitted under the condition that the first server only has one portal that can be used for transmitting data, and effective transmission of the data is further ensured.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present invention provides a data transmission system, please refer to fig. 8, where the data transmission system may include: at least one data transmission subsystem 10, and when the data transmission system includes a plurality of data transmission subsystems 10, every two data transmission subsystems 10 can be connected in a cascade manner.
Each data transmission subsystem 10 may include: a second server 110, and a plurality of first servers 120 connected to the second server 110.
The first server 120 is configured to execute the data transmission method shown in fig. 2 or fig. 3. Further, the second server 110 is used for managing a plurality of first servers 120. Moreover, since the management capability of the second server 110 is limited, when the first server 120 included in the data transmission subsystem 10 needs to be managed by a plurality of second servers 110, the data transmission subsystem 10 may further include a plurality of second servers 110, which is not specifically limited in the embodiment of the present invention.
Optionally, referring to fig. 8, each data transmission subsystem 10 may further include: in each data transmission subsystem 10, each two first servers 120 may be connected through the switch 130, and each first server 120 and the second server 110 may also be connected through the switch 130.
Furthermore, the switch 130 is further provided with a cascade port, and every two data transmission subsystems 10 can be connected through the cascade port. Alternatively, every two data transmission subsystems 10 may be cascaded through the core switch. By cascading the data transmission subsystems 10, capacity expansion of the data transmission system can be achieved.
When a plurality of data transmission subsystems which need to transmit data belong to the same second VLAN, the plurality of data transmission subsystems can realize the transmission of second data through the virtual network card, so that each data transmission subsystem in the data transmission system can be set to belong to the same second VLAN, and the plurality of data transmission subsystems belong to different second VLANs, thus, the second data in each data transmission subsystem can be transmitted only in the respective data transmission subsystem and can not be transmitted to other data transmission subsystems, the second data in different data transmission subsystems can be ensured not to interfere with each other, and the data isolation of the second data among different data transmission subsystems is realized.
It should be noted that, in the data transmission system provided in the embodiment of the present invention, the first server may include: blade servers or advanced telecommunications Computing platform (ATCA) devices, etc. Also, referring to fig. 9, when the first server includes a blade server 1201, the switch may include: the network switch board 1301, in which the second server can act as a master node 1101, to implement management of the blade server 1201.
An embodiment of the present invention provides a server, including a processor and a memory,
wherein the content of the first and second substances,
a memory for storing a computer program.
And the processor is used for executing the program stored in the memory to realize the data transmission method shown in the figure 2 or the figure 3.
Fig. 10 is a schematic diagram illustrating a configuration of a server according to an example embodiment. The server 800 includes a Central Processing Unit (CPU)801, a system memory 804 including a Random Access Memory (RAM)802 and a Read Only Memory (ROM)803, and a system bus 805 connecting the system memory 804 and the central processing unit 801. The server 800 also includes a basic input/output system (I/O system) 806, which facilitates transfer of information between devices within the computer, and a mass storage device 807 for storing an operating system 813, application programs 814, and other program modules 815.
The basic input/output system 806 includes a display 808 for displaying information and an input device 809 such as a mouse, keyboard, etc. for user input of information. Wherein the display 808 and the input device 809 are connected to the central processing unit 801 through an input output controller 810 connected to the system bus 805. The basic input/output system 806 may also include an input/output controller 810 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 810 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 807 is connected to the central processing unit 801 through a mass storage controller (not shown) connected to the system bus 805. The mass storage device 807 and its associated computer-readable media provide non-volatile storage for the server 800. That is, the mass storage device 807 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM drive.
The server 800 may also operate as a remote computer connected to a network via a network, such as the internet, in accordance with various embodiments of the invention. That is, the server 800 may be connected to the network 812 through the network interface unit 811 coupled to the system bus 805, or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 811.
The memory further includes one or more programs, the one or more programs are stored in the memory, and the central processing unit 801 executes the one or more programs to implement the data transmission method shown in fig. 2 or 3.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as a memory comprising instructions, executable by a processor of a server to perform a data transfer method as shown in various embodiments of the present invention is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Embodiments of the present invention further provide a computer program product containing instructions, which when run on a computer, cause the computer to execute the data transmission method provided by the above method embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (16)

1. A data transmission method applied to a first target server in a data transmission system, the data transmission system comprising: a second server, and a plurality of first servers connected to the second server, the first target server being any one of the plurality of first servers, the method comprising:
Constructing a first Virtual Local Area Network (VLAN) based on the physical network cards in the plurality of first servers;
configuring a virtual network card in the first target server based on the physical network card in the first target server;
constructing a second VLAN where the virtual network card is located based on the virtual network card;
and sending first data to other first servers connected with the first target server through the first VLAN, and sending second data to the second server through the second VLAN.
2. The method of claim 1,
the sending first data to other first servers connected to the first target server through the first VLAN includes:
sending the first data to the physical network card;
based on the first VLAN, the first data are sent to the other first servers through the network ports of the physical network cards;
the sending second data to the second server over the second VLAN includes:
sending the second data to the physical network card through the virtual network card;
and based on the second VLAN, the second data is sent to the second server through the network port of the physical network card.
3. The method according to claim 1 or 2,
the first data is service data, and the service data is used for the first target server to realize communication service with the other first servers;
the second data is management data, and the management data is used for the second server to manage the first target server.
4. The method of claim 1 or 2, wherein the first target server is configured with a portal.
5. The method of claim 1 or 2, wherein the second server is configured to manage the first server, and after configuring a virtual network card in the first target server based on a physical network card in the first target server, the method further comprises:
and receiving an Internet Protocol (IP) address redistributed by the second server, wherein the redistributed IP address is allocated to the virtual network card and/or the physical network card by the second server based on a Dynamic Host Configuration Protocol (DHCP) when the IP address of the virtual network card is determined to be the same as the IP address of the physical network card by the second server.
6. The method according to claim 1 or 2, wherein the first target server is connected to the second server through a switch, a virtual network card is configured in the second server, and the constructing the second VLAN where the virtual network card is located based on the virtual network card includes:
and constructing the second VLAN based on the switch, the virtual network card in the first target server and the virtual network card in the second server.
7. A data transmission apparatus, characterized in that the apparatus comprises:
the first constructing module is used for constructing a first Virtual Local Area Network (VLAN) based on the physical network cards in the plurality of first servers;
the configuration module is used for configuring a virtual network card in the first target server based on the physical network card in the first target server;
the second constructing module is used for constructing a second VLAN where the virtual network card is located based on the virtual network card;
a first sending module, configured to send first data to other first servers connected to the first target server through the first VLAN;
and the second sending module is used for sending second data to the second server through the second VLAN.
8. The apparatus of claim 7,
the first sending module is configured to:
sending the first data to the physical network card;
based on the first VLAN, the first data are sent to the other first servers through the network ports of the physical network cards;
the second sending module is configured to:
sending the second data to the physical network card through the virtual network card;
and based on the second VLAN, the second data is sent to the second server through the network port of the physical network card.
9. The apparatus according to claim 7 or 8,
the first data is service data, and the service data is used for the first target server to realize communication service with the other first servers;
the second data is management data, and the management data is used for the second server to manage the first target server.
10. The apparatus of claim 7 or 8, wherein the first target server is configured with a portal.
11. The apparatus of claim 7 or 8, wherein the second server is configured to manage the first server based on a physical network card in the first target server, the apparatus further comprising:
And the receiving module is used for receiving the internet protocol IP address redistributed by the second server, wherein the redistributed IP address is allocated to the virtual network card and/or the physical network card by the second server based on a Dynamic Host Configuration Protocol (DHCP) when the IP address of the virtual network card is determined to be the same as the IP address of the physical network card by the second server.
12. The apparatus according to claim 7 or 8, wherein the first target server is connected to the second server through a switch, a virtual network card is configured in the second server, and the second building module is configured to:
and constructing the second VLAN based on the switch, the virtual network card in the first target server and the virtual network card in the second server.
13. A data transmission system, characterized in that the data transmission system comprises: at least one data transmission subsystem;
each data transmission subsystem includes: a second server, and a plurality of first servers connected to the second server;
the first server is configured to execute the data transmission method according to any one of claims 1 to 6.
14. The data transmission system of claim 13, wherein each data transmission subsystem belongs to the same second VLAN, and wherein the plurality of data transmission subsystems belong to different second VLANs.
15. The data transmission system of claim 13 or 14, wherein each data transmission subsystem further comprises: a switch, the first server comprising: a blade server, the switch comprising: a network switch board.
16. A server, comprising a processor and a memory,
wherein the content of the first and second substances,
the memory is used for storing a computer program;
the processor is configured to execute the program stored in the memory to implement the data transmission method according to any one of claims 1 to 6.
CN201810175076.6A 2018-03-02 2018-03-02 Data transmission method, device and system and server Active CN110224917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810175076.6A CN110224917B (en) 2018-03-02 2018-03-02 Data transmission method, device and system and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810175076.6A CN110224917B (en) 2018-03-02 2018-03-02 Data transmission method, device and system and server

Publications (2)

Publication Number Publication Date
CN110224917A CN110224917A (en) 2019-09-10
CN110224917B true CN110224917B (en) 2021-10-08

Family

ID=67822035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810175076.6A Active CN110224917B (en) 2018-03-02 2018-03-02 Data transmission method, device and system and server

Country Status (1)

Country Link
CN (1) CN110224917B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021184291A1 (en) * 2020-03-19 2021-09-23 西安诺瓦星云科技股份有限公司 Data transmission method, apparatus and system
CN112104509A (en) * 2020-09-24 2020-12-18 视联动力信息技术股份有限公司 Configuration device and method of server
CN114697600A (en) * 2020-12-31 2022-07-01 中兴通讯股份有限公司 Terminal and terminal application method
CN113406936A (en) * 2021-06-28 2021-09-17 中国科学技术大学 Control system of large scientific device
CN113949848B (en) * 2021-10-18 2023-06-27 重庆紫光华山智安科技有限公司 Data transmission method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118090A (en) * 2013-01-18 2013-05-22 福建升腾资讯有限公司 Household fusion cloud computer terminal realizing method based on public network
CN104202195A (en) * 2014-09-10 2014-12-10 华为技术有限公司 Server unified communication method, baseboard management controller (BMC) and server
CN105376231A (en) * 2015-11-18 2016-03-02 浪潮(北京)电子信息产业有限公司 Method and device for realizing service isolation
CN107276826A (en) * 2017-07-24 2017-10-20 郑州云海信息技术有限公司 A kind of capacitor network collocation method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9014184B2 (en) * 2009-09-24 2015-04-21 Nec Corporation System and method for identifying communication between virtual servers
CN103905309A (en) * 2012-12-28 2014-07-02 中国电信股份有限公司 Method and system of data exchange between virtual machines
CN104486234B (en) * 2014-11-21 2018-10-30 华为技术有限公司 A kind of method and server that service switch is unloaded to physical network card
CN105207873B (en) * 2015-08-31 2019-02-26 华为技术有限公司 A kind of message processing method and device
CN107306191A (en) * 2016-04-18 2017-10-31 北京万合鸿瑞科技有限公司 A kind of Internet resources topological system virtualized based on vmware
CN106850871B (en) * 2017-01-23 2020-11-17 上海上讯信息技术股份有限公司 Method for realizing DHCP server with single physical network card and multiple VLANs

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118090A (en) * 2013-01-18 2013-05-22 福建升腾资讯有限公司 Household fusion cloud computer terminal realizing method based on public network
CN104202195A (en) * 2014-09-10 2014-12-10 华为技术有限公司 Server unified communication method, baseboard management controller (BMC) and server
CN105376231A (en) * 2015-11-18 2016-03-02 浪潮(北京)电子信息产业有限公司 Method and device for realizing service isolation
CN107276826A (en) * 2017-07-24 2017-10-20 郑州云海信息技术有限公司 A kind of capacitor network collocation method and device

Also Published As

Publication number Publication date
CN110224917A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
CN110224917B (en) Data transmission method, device and system and server
US20210409492A1 (en) System and method for policy based fibre channel zoning based on storage ports and bus adaptors
US9999030B2 (en) Resource provisioning method
US7945647B2 (en) Method and system for creating a virtual network path
US20190081921A1 (en) Management of domain name systems in a large-scale processing environment
EP2776925B1 (en) Dynamic policy based interface configuration for virtualized environments
WO2021135344A1 (en) Virtual private cloud and non-public cloud data center communication method, virtual private cloud and non-public cloud data center communication configuration method, and related apparatuses
CN107078974B (en) Network switch, method executed by network switch and memory resource
US9934057B2 (en) Shadow VNICs for the control and observability of IO virtual functions
CN111880902A (en) Pod creation method, device, equipment and readable storage medium
CN103997414A (en) Configuration information generation method and network control unit
US8095661B2 (en) Method and system for scaling applications on a blade chassis
EP3664420B1 (en) Managing address spaces across network elements
CN103346981A (en) Virtual exchange method, related device and computer system
CN109617816B (en) Data message transmission method and device
CN110830574B (en) Method for realizing intranet load balance based on docker container
JP2016116184A (en) Network monitoring device and virtual network management method
US20110196951A1 (en) Computer managing method
CN112929206B (en) Method and device for configuring cloud physical machine in cloud network environment
CN112583655B (en) Data transmission method and device, electronic equipment and readable storage medium
US10778574B2 (en) Smart network interface peripheral cards
CN114584504B (en) Network card communication method, device, equipment and medium for AI training platform
CN114124714B (en) Multi-level network deployment method, device, equipment and storage medium
CN113904871B (en) Access method of network slice, PCF entity, terminal and communication system
CN104506668A (en) Route configuration method and device of dedicated cloud host

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant