CN114531415A - Network communication method, data center, device and readable storage medium - Google Patents

Network communication method, data center, device and readable storage medium Download PDF

Info

Publication number
CN114531415A
CN114531415A CN202210220162.0A CN202210220162A CN114531415A CN 114531415 A CN114531415 A CN 114531415A CN 202210220162 A CN202210220162 A CN 202210220162A CN 114531415 A CN114531415 A CN 114531415A
Authority
CN
China
Prior art keywords
server
bit
message
data center
bit address
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.)
Granted
Application number
CN202210220162.0A
Other languages
Chinese (zh)
Other versions
CN114531415B (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.)
21VIANET GROUP Inc
Original Assignee
21VIANET GROUP Inc
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 21VIANET GROUP Inc filed Critical 21VIANET GROUP Inc
Priority to CN202210220162.0A priority Critical patent/CN114531415B/en
Publication of CN114531415A publication Critical patent/CN114531415A/en
Application granted granted Critical
Publication of CN114531415B publication Critical patent/CN114531415B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the technical field of computers, and provides a network communication method, a data center, a device and a readable storage medium, wherein the method is applied to a server in the data center and comprises the following steps: sending an Address Resolution Protocol (ARP) message to acquire a second U bit address of the target server; and setting a TOS field in the IP message according to the second U bit address of the target server, and sending the IP message to the target server, so that the network transmission equipment of the data center performs QoS (quality of service) setting on the IP message according to the TOS field. According to the method, the server can set the TOS field according to the second U bit address of the target server, and then the network transmission equipment can complete QoS setting according to the TOS field in the IP message, so that the communication quality of the server among different U bits is ensured.

Description

Network communication method, data center, device and readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a network communication method, a data center, a device, and a readable storage medium.
Background
With the continuous development of Internet technology, more and more enterprises choose to use Internet Data Centers (IDCs) to handle their own services.
Different cabinets are usually placed in the IDC, the height specification of one cabinet includes 42U, 36U and 24U, and one server usually occupies the height of 1U or 2U cabinet. Usually, a cabinet is equipped with switches, servers in the same cabinet are connected through the switches, so that low-delay access among the servers is realized, network transmission among the servers crossing the cabinet can pass through a plurality of switches, and even can share network bandwidth with other network transmission, and communication delay is difficult to guarantee. Particularly, some cluster systems of enterprise users, such as distributed storage systems, generally require that a relatively low network communication delay is guaranteed in the nodes, and the nodes need to be deployed on different servers in the same cabinet. Because the equipment cabinets in the data center have limited affiliated resources and it is difficult to ensure that a complete equipment cabinet can be provided for the deployment of the user cluster system, it is desirable in the IDC to assemble servers scattered on U bits of different equipment cabinets into a logical equipment cabinet, thereby saving the U bit resources of the equipment cabinets. However, the communication quality between servers scattered on U bits of different cabinets is often difficult to guarantee, which negatively affects the performance and stability of the cluster system deployed therein.
In view of this, how to enable servers in different cabinets and U bits to complete high-quality communication becomes an urgent technical problem to be solved.
Disclosure of Invention
The invention provides a network communication method, a data center, a device and a readable storage medium, which are used for solving the technical problem that servers in different cabinets and U bits cannot complete high-quality communication in the prior art.
In a first aspect, to solve the above technical problem, the present application provides a method for network communication, applied to a server in a data center, including:
sending an Address Resolution Protocol (ARP) message to acquire a second U bit address of the target server;
and setting a TOS field in an IP message according to the second U bit address of the target server, and sending the IP message to the target server, so that network transmission equipment of the data center performs QoS (quality of service) setting on the IP message according to the TOS field.
A possible implementation manner, sending the ARP packet to obtain the second U-bit address of the target server, includes:
when the target server is addressed natively;
acquiring a first U bit address of a local machine, adding the first U bit address into an ARP message, and generating the first ARP message;
broadcasting the first ARP message and addressing the target server;
and receiving a first ARP response message returned by the target server based on the first ARP message, and acquiring a second U-bit address of the target server from the first ARP response message.
A possible implementation manner, sending the ARP packet to obtain the second U-bit address of the target server, includes:
when the target server addresses the native;
receiving a second ARP message sent by the target server, and acquiring a second U-bit address of the target server from the second ARP message;
generating a corresponding response message according to the second ARP message, and adding a first U bit address of a local machine into the response message to generate a second ARP response message;
and sending the second ARP response message to the target server.
In a second aspect, the present application provides a method for network communication, applied to a management system of a data center, where a server in the data center performs network communication using the method according to the first aspect, including:
coding according to the cabinet number and the U-bit number of the server in the data center, obtaining the U-bit address corresponding to all the servers in the data center, and generating a U-bit information table of the data center;
and sending the U-bit address to a corresponding server according to the U-bit information table, so that the servers can carry out network communication according to the U-bit address.
A possible implementation manner, encoding is performed according to the cabinet number and the U-bit number of the server, so as to obtain a U-bit address corresponding to the server, and generate a U-bit information table in the data, further including:
when the cabinet number or the U-bit number where the server is located changes due to the fact that the server is moved or replaced, coding is carried out again according to the changed cabinet number and the changed U-bit number, the latest U-bit address of the server is obtained, and operations such as adding, deleting, checking, changing and the like are carried out on the U-bit information table to update the U-bit information table.
In a third aspect, the present application provides a data center, comprising:
a server for performing the method of any one of the first aspect for network communication;
a U-bit management system, configured to perform the method according to any one of the second aspects, manage a U-bit address corresponding to the server, and support the server to complete network communication;
and the network transmission equipment is used for setting corresponding QoS setting according to the TOS field in the IP message sent by the server so as to complete network communication between the servers.
In a fourth aspect, the present application further provides a network communication apparatus, applied to a server in a data center, including:
the address resolution unit is used for sending the ARP message and acquiring a second U-bit address of the target server;
and the communication unit is used for setting a TOS field in an IP message according to the second U bit address of the target server and sending the IP message to the target server, so that the network transmission equipment of the data center performs QoS (quality of service) setting on the IP message according to the TOS field.
In a fifth aspect, the present application further provides a network communication apparatus, applied to a management system of a data center, where a server in the data center performs network communication using the method according to any one of the first aspect, including:
the U-bit management unit is used for coding according to the cabinet number and the U-bit number of the server in the data center, obtaining U-bit addresses corresponding to all the servers in the data center and generating a U-bit information table of the data center;
and the communication support unit is used for sending the U-bit address to the corresponding server according to the U-bit information table, so that the servers can carry out network communication according to the U-bit address.
In a sixth aspect, the present application further provides an apparatus for network communication, including:
at least one processor, and
a memory coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the at least one processor performing the method of any one of the first or second aspects by executing the instructions stored by the memory.
In a seventh aspect, the present application further provides a readable storage medium, comprising a memory,
the memory is for storing instructions that, when executed by the processor, cause an apparatus comprising the readable storage medium to perform the method of any of the first or second aspects.
The technical scheme in the embodiment of the application has the following beneficial effects: the server can obtain a second U bit address of the target server by sending an Address Resolution Protocol (ARP) message; and setting a TOS field in the IP message according to the second U bit address of the target server, and sending the IP message to the target server, so that the network transmission equipment of the data center performs QoS (quality of service) setting on the IP message according to the TOS field, the server can set the TOS field according to the second U bit address of the target server, the network transmission equipment can complete QoS setting according to the TOS field in the IP message, and the communication quality of the server between different U bits is ensured.
Drawings
Fig. 1 is a flowchart of a method for network communication according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a data center according to an embodiment of the present invention;
fig. 3 is a flow chart of another method of network communication provided by an embodiment of the invention;
FIG. 4 is a schematic diagram of a data center for U-bit encoding according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of another data center provided in an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a network communication device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another network communication device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
In the prior art, in order to save limited cabinet U-bit resources in a Data Center (Internet Data Center, IDC), a plurality of servers on different cabinets and U-bits are often required to be deployed as a cluster system, and at this time, because network communication crossing cabinets needs to pass through a plurality of switches, communication delay between the servers is high, and communication quality cannot be guaranteed.
Therefore, the application provides a network communication method, a data center, a device and a readable storage medium, which are used for solving the technical problem that servers in different cabinets and U bits cannot complete high-quality communication in the prior art.
The technical scheme provided by the embodiment of the application is described in the following with the accompanying drawings of the specification.
Referring to fig. 1, the present invention provides a method for network communication, which is applied to a server in a data center, and the method includes:
101. sending an Address Resolution Protocol (ARP) message to acquire a second U bit address of the target server;
102. and setting a TOS field in the IP message according to the second U bit address of the target server, and sending the IP message to the target server, so that the network transmission equipment of the data center performs QoS (quality of service) setting on the IP message according to the TOS field.
For example, please refer to fig. 2, and fig. 2 is a schematic structural diagram of a data center according to an embodiment of the present invention. The system comprises a cabinet 21 and a cabinet 22, wherein the cabinet 21 is provided with a server 211 and a server 212, the cabinet 22 is provided with a server 221, the U bit address of the server 211 is 0x0005, the U bit address of the server 212 is 0x0006, and the U bit address of the server 221 is 0x0007, the server 211 and the server 221 belong to a cluster system set by users, the cabinet 21 is connected with a switch 23, and the cabinet 22 is connected with a switch 24.
When server 211 needs to access server 221, server 211 first sends an ARP message for broadcast addressing. When the server 221 responds to the ARP message, it sends a response message to the server 211 and simultaneously sends the second U-bit address 0x0007 of the server 221.
After the server 211 receives the second U-bit address 0x0007 of the server 221, since the server 211 and the server 221 are servers in the same cluster, a lower communication delay is required, and at this time, the server 211 and the server 221 are located in different cabinets, and more switches need to be passed through, the server 211 sets the TOS field in the IP packet 1 sent to the server 221 to be the lowest communication delay 0x 10.
When the switch 23 and the switch 24 process the IP packet 1, according to the requirement of the TOS field therein, the delay of the IP packet 1 is preferentially ensured to be the lowest by increasing the queue priority of the IP packet 1, so as to complete the QoS between the server 211 and the server 221.
In practical applications, the server may set the TOS field in the IP packet to one of communication delay minimum 0x10, communication maximum throughput 0x08, communication maximum reliability 0x04, communication cost minimum 0x02 and general service 0x00 according to the U-bit address and communication requirement of the target server.
In the embodiment provided by the invention, the server can obtain the second U bit address of the target server by sending an Address Resolution Protocol (ARP) message; and setting a TOS field in the IP message according to the second U bit address of the target server, and sending the IP message to the target server, so that the network transmission equipment of the data center performs QoS (quality of service) setting on the IP message according to the TOS field, the server can set the TOS field according to the second U bit address of the target server, the network transmission equipment can complete QoS setting according to the TOS field in the IP message, and the communication quality of the server between different U bits is ensured.
A possible implementation manner, sending the ARP packet to obtain the second U-bit address of the target server, includes:
when the native addresses the target server;
acquiring a first U bit address of a local machine, adding the first U bit address into an ARP message, and generating a first ARP message;
broadcasting a first ARP message and addressing a target server;
and receiving a first ARP response message returned by the target server based on the first ARP message, and acquiring a second U-bit address of the target server from the first ARP response message.
For example, the example in fig. 2 is taken as an example. When the server 211 addresses the server 221, the first U bit address of the local device is obtained as 0x0005, and the ARP packet to be sent is an ARP request packet, so the original OP field is 0x 0001. And reserving the last bit in the low-order byte of the ARP message, and filling the first U-bit address into the other 15 bits to obtain a modified OP field of 0x 0051. And taking the ARP message after the OP field is modified as a first ARP message and broadcasting the first ARP message.
When the server 221 receives the first ARP packet and returns the first ARP reply packet, the server 211 receives the first ARP reply packet and extracts the OP field therein as 0x 0072. The server 211 learns that the original OP field of the packet is 0x0002 according to that the last bit in the OP field is 2, that the original OP field is 0x0002, that the original OP field is an ARP reply packet, and that the second U bit address of the server 221 is 0x007 obtained from the remaining 15 bits of the OP field.
In practical application, the OP field occupies 2 bytes, namely 16 bits, and the server can modify the OP field in a mode that the value of the last 1 bit in the original OP field is kept unchanged by using 8 bits of an upper bit byte and 7 bits of an upper bit in a lower bit byte to represent the U bit addressing of the cabinet. When the server analyzes the ARP message, the last 1 bit of the OP field is firstly identified to confirm the message type, and then the remaining 15 bits are extracted to obtain the U-bit address of the target server.
In the embodiment provided by the invention, the server adds the U bit address into the ARP message by expanding the ARP protocol, so that the server can acquire the U bit address of the target server by extracting the OP field in the ARP message, thereby the server can sense the U bit address, and further the TOS field setting of the IP message is completed according to the U bit address.
A possible implementation manner, sending the ARP packet to obtain the second U-bit address of the target server, includes:
when the target server addresses the local machine;
receiving a second ARP message sent by the target server, and acquiring a second U-bit address of the target server from the second ARP message;
generating a corresponding response message according to the second ARP message, and adding the first U bit address of the local machine into the response message to generate a second ARP response message;
sending the second ARP response message to the target server
For example, the example in fig. 2 is taken as an example. When server 221 addresses server 211, a second ARP message is broadcast to server 211. When the server 211 receives the second ARP packet, the second U-bit address of the server 221 is extracted from the OP field 0x0071 in the second ARP packet as 0x 0007.
The server 211 generates a corresponding ARP reply message according to the second ARP message, and adds the first U-bit address 0x0005 of the server 211 to the OP field of the ARP reply message, where the obtained OP field is 0x 0052. The service 211 uses the ARP reply message with the modified OP field as a second ARP reply message and sends it to the server 221.
In the embodiment provided by the invention, the server adds the U bit address into the ARP message by expanding the ARP protocol, so that the server can acquire the U bit address of the target server by extracting the OP field in the ARP message, thereby the server can sense the U bit address, and further the TOS field setting of the IP message is completed according to the U bit address.
Based on the same inventive concept, the present invention provides a network communication method applied to a management system of a data center, wherein a server in the data center performs network communication using the above network communication method, please refer to fig. 3, the method includes:
301. coding according to the cabinet number and the U-bit number of the server in the data center, obtaining the U-bit address corresponding to all the servers in the data center, and generating a U-bit information table of the data center;
302. and sending the U-bit address to a corresponding server according to the U-bit information table, so that the servers can carry out network communication according to the U-bit address.
Wherein, encode according to rack number and the U bit number of server, obtain the U bit address that the server corresponds, generate the U bit information table in the data, still include:
when the cabinet number or the U bit number of the server is changed due to the fact that the server is moved or replaced, coding is carried out again according to the changed cabinet number and the changed U bit number, the latest U bit address of the server is obtained, and operations such as increasing, deleting, checking, modifying and the like are carried out on the U bit information table to update the U bit information table.
For example, referring to fig. 4, fig. 4 is a schematic diagram illustrating U-bit encoding performed in a data center according to an embodiment of the present invention. The data center comprises two cabinets, namely a cabinet 41 and a cabinet 42, wherein the cabinet 41 is provided with a server 411 and a server 412, and the cabinet 42 is provided with a server 421.
The management system first encodes the U bits on the cabinet, which are set to two bytes for a 16-bit binary number. The cabinet 41 and the cabinet 42 have two U bits, respectively, so that the two U bits on the cabinet 41 are sequentially encoded as 110011011 and 110011100 from top to bottom, and the two U bits on the cabinet 42 are sequentially encoded as 110100101 and 110100110 from top to bottom. Therefore, the U bit address of the server 411 is 110011011, the U bit address of the server 412 is 110011100, and the U bit address of the server 421 is 110100101. The management system generates a U bit information table of the data center by using the U bit information corresponding to each server, and sends the U bit information table to the corresponding server by using the U bit information as an address.
When the server 412 is moved from the lower U bit of the cabinet 41 to the lower U bit of the cabinet 42 as required by the user, the management system re-encodes the U bit of the server 412 to obtain a new U bit address 110100110 of the server 412. The management system updates the new U-bit address of the server 412 to the U-bit information table of the data center and sends the new U-bit address of the server 412 to the server 412.
In practical application, a technician only needs to ensure that the total length of the U-bit address does not exceed two bytes, and the specific encoding mode can be adjusted according to practical needs, for example: at most 64 servers are placed on one cabinet in the actual data center, at the moment, the coding format of the U-bit address can be set to be a cabinet number + a U-bit number, wherein the cabinet number occupies 10 bits, the U-bit number occupies 6 bits, and the U-bit addressing range is
ˉ
0x00050xFFFF。
In the embodiment provided by the invention, the management system can automatically encode the cabinet number and the U-bit number of the server in the data center according to the cabinet and U-bit conditions of the data center, obtain the U-bit address corresponding to the server and the U-bit information table of the data center, send the U-bit address to the corresponding server, and update the U-bit address of each server after the server is moved or replaced, so that the server can obtain the U-bit address of the local computer, and the server is supported to perform network communication according to the U-bit address.
Based on the same inventive concept, the present invention provides a data center, please refer to fig. 5, which includes:
a server 501 for performing the network communication method as above to perform network communication;
a U-bit management system 502, configured to manage a U-bit address corresponding to the server by using the above network communication method, and support the server to complete network communication;
the network transmission device 503 is configured to set a corresponding QoS setting according to the TOS field in the IP packet sent by the server, so as to complete network communication between the servers.
Based on the same inventive concept, the present invention provides a network communication apparatus, applied to a server in a data center, please refer to fig. 6, the network communication apparatus includes:
an address resolution unit 601, configured to send an ARP packet to obtain a second U-bit address of the target server;
the communication unit 602 is configured to set a TOS field in the IP packet according to the second U-bit address of the target server, and send the IP packet to the target server, so that the network transmission device of the data center performs QoS setting on the IP packet according to the TOS field.
Wherein, the address resolution unit 601 is further configured to:
when the native addresses the target server; acquiring a first U bit address of a local machine, adding the first U bit address into an ARP message, and generating a first ARP message; broadcasting a first ARP message and addressing a target server; and receiving a first ARP response message returned by the target server based on the first ARP message, and acquiring a second U-bit address of the target server from the first ARP response message.
Wherein, the address resolution unit 601 is further configured to:
when the target server addresses the local machine; receiving a second ARP message sent by the target server, and acquiring a second U-bit address of the target server from the second ARP message; generating a corresponding response message according to the second ARP message, and adding the first U bit address of the local machine into the response message to generate a second ARP response message; and sending the second ARP response message to the target server.
Based on the same inventive concept, the present application further provides a network communication apparatus applied to a management system of a data center, wherein a server in the data center performs network communication using the network communication method as described above, please refer to fig. 7, and the network communication apparatus includes:
the U-bit management unit 701 is configured to encode according to a cabinet number and a U-bit number of a server in the data center, obtain U-bit addresses corresponding to all servers in the data center, and generate a U-bit information table of the data center;
and a communication support unit 702, configured to send the U-bit address to a corresponding server according to the U-bit information table, so that network communication can be performed between servers according to the U-bit address.
Wherein, the U-bit management unit 701 is further configured to:
when the cabinet number or the U bit number of the server is changed due to the fact that the server is moved or replaced, coding is carried out again according to the changed cabinet number and the changed U bit number, the latest U bit address of the server is obtained, and operations such as increasing, deleting, checking, modifying and the like are carried out on the U bit information table to update the U bit information table.
Based on the same inventive concept, an embodiment of the present invention provides a network communication apparatus, which may be an electronic device such as a personal computer, and the apparatus may include:
at least one processor configured to implement the steps of the method for network communication as provided by the embodiments of the present application when executing the computer program stored in the memory.
Alternatively, the processor may be a central processing unit, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits for controlling program execution.
Optionally, the device for protecting data integrity further includes a Memory connected to the at least one processor, where the Memory may include a Read Only Memory (ROM), a Random Access Memory (RAM), and a disk Memory. The memory is used for storing data required by the processor during operation, that is, storing instructions executable by the at least one processor, and the at least one processor executes the method shown in fig. 1 or fig. 3 by executing the instructions stored in the memory. Wherein, the number of the memories is one or more.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is caused to execute the steps of the above method for network communication.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method for network communication, applied to a server in a data center, is characterized by comprising the following steps:
sending an Address Resolution Protocol (ARP) message to acquire a second U bit Address of the target server;
and setting a TOS field in an Internet Protocol (IP) message according to the second U bit address of the target server, and sending the IP message to the target server, so that network transmission equipment of the data center performs quality of service (QoS) setting on the IP message according to the TOS field.
2. The method of claim 1, wherein sending the ARP packet to obtain the second U-bit address of the target server comprises:
when the target server is addressed natively;
acquiring a first U bit address of a local machine, adding the first U bit address into an ARP message, and generating the first ARP message;
broadcasting the first ARP message and addressing the target server;
and receiving a first ARP response message returned by the target server based on the first ARP message, and acquiring a second U-bit address of the target server from the first ARP response message.
3. The method of claim 1, wherein sending the ARP packet to obtain the second U-bit address of the target server comprises:
when the target server addresses the native;
receiving a second ARP message sent by the target server, and acquiring a second U-bit address of the target server from the second ARP message;
generating a corresponding response message according to the second ARP message, and adding a first U bit address of a local machine into the response message to generate a second ARP response message;
and sending the second ARP response message to the target server.
4. A method of network communication applied to a management system of a data center, wherein a server in the data center performs network communication using the method of any one of claims 1 to 3, comprising:
coding according to the cabinet number and the U-bit number of the server in the data center, obtaining the U-bit address corresponding to all the servers in the data center, and generating a U-bit information table of the data center;
and sending the U-bit address to a corresponding server according to the U-bit information table, so that the servers can carry out network communication according to the U-bit address.
5. The method as claimed in claim 4, wherein the encoding is performed according to the cabinet number and the U-bit number of the server, the U-bit address corresponding to the server is obtained, and a U-bit information table in the data is generated, further comprising:
when the cabinet number or the U-bit number where the server is located changes due to the fact that the server is moved or replaced, coding is carried out again according to the changed cabinet number and the changed U-bit number, the latest U-bit address of the server is obtained, and operations such as adding, deleting, checking, changing and the like are carried out on the U-bit information table to update the U-bit information table.
6. A data center, comprising:
a server for performing the method of any one of claims 1-3 for network communication;
a U bit management system, configured to perform the method according to any one of claims 4-5, manage a U bit address corresponding to the server, and support the server to complete network communication;
and the network transmission equipment is used for setting corresponding QoS setting according to the TOS field in the IP message sent by the server so as to complete network communication between the servers.
7. An apparatus for network communication, applied to a server in a data center, comprising:
the address resolution unit is used for sending the ARP message and acquiring a second U-bit address of the target server;
and the communication unit is used for setting a TOS field in an IP message according to the second U-bit address of the target server and sending the IP message to the target server so that the network transmission equipment of the data center sets the QoS of the IP message according to the TOS field.
8. A network communication apparatus applied to a management system of a data center, wherein a server in the data center performs network communication using the method according to any one of claims 1 to 3, the method comprising:
the U-bit management unit is used for coding according to the cabinet number and the U-bit number of the server in the data center, obtaining U-bit addresses corresponding to all the servers in the data center and generating a U-bit information table of the data center;
and the communication support unit is used for sending the U-bit address to the corresponding server according to the U-bit information table, so that the servers can carry out network communication according to the U-bit address.
9. An apparatus for network communication, comprising:
at least one processor, and
a memory coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the at least one processor performing the method of any one of claims 1-5 by executing the instructions stored by the memory.
10. A readable storage medium, comprising a memory,
the memory is to store instructions that, when executed by the processor, cause an apparatus comprising the readable storage medium to perform the method of any of claims 1-5.
CN202210220162.0A 2022-03-08 2022-03-08 Network communication method, data center, device and readable storage medium Active CN114531415B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210220162.0A CN114531415B (en) 2022-03-08 2022-03-08 Network communication method, data center, device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210220162.0A CN114531415B (en) 2022-03-08 2022-03-08 Network communication method, data center, device and readable storage medium

Publications (2)

Publication Number Publication Date
CN114531415A true CN114531415A (en) 2022-05-24
CN114531415B CN114531415B (en) 2023-11-21

Family

ID=81626354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210220162.0A Active CN114531415B (en) 2022-03-08 2022-03-08 Network communication method, data center, device and readable storage medium

Country Status (1)

Country Link
CN (1) CN114531415B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001189754A (en) * 1999-12-28 2001-07-10 Toshiba Corp QoS PROVIDING SYSTEM, ROUTER DEVICE, QoS SERVER, USER TERMINAL AND QoS PROVIDING METHOD
US20030130833A1 (en) * 2001-04-20 2003-07-10 Vern Brownell Reconfigurable, virtual processing system, cluster, network and method
US7107326B1 (en) * 2000-10-13 2006-09-12 3Com Corporation Method and system for integrating IP address reservations with policy provisioning
CN102946350A (en) * 2012-09-18 2013-02-27 杭州华三通信技术有限公司 Priority-based data transmission method and device
CN104009863A (en) * 2013-02-27 2014-08-27 联想(北京)有限公司 Server system and method for automatically acquiring server number
KR20140105300A (en) * 2013-02-22 2014-09-01 삼성전자주식회사 Network system including server and communication relay device and method of communication relay and ip allocation
CN110661893A (en) * 2018-06-28 2020-01-07 鸿富锦精密电子(天津)有限公司 Data center management method and data center management system
CN112000607A (en) * 2020-09-11 2020-11-27 苏州浪潮智能科技有限公司 Whole cabinet server node non-contact ID address identification device and method
CN113805950A (en) * 2021-08-30 2021-12-17 超越科技股份有限公司 Method for managing server by cluster management system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001189754A (en) * 1999-12-28 2001-07-10 Toshiba Corp QoS PROVIDING SYSTEM, ROUTER DEVICE, QoS SERVER, USER TERMINAL AND QoS PROVIDING METHOD
US7107326B1 (en) * 2000-10-13 2006-09-12 3Com Corporation Method and system for integrating IP address reservations with policy provisioning
US20030130833A1 (en) * 2001-04-20 2003-07-10 Vern Brownell Reconfigurable, virtual processing system, cluster, network and method
CN102946350A (en) * 2012-09-18 2013-02-27 杭州华三通信技术有限公司 Priority-based data transmission method and device
KR20140105300A (en) * 2013-02-22 2014-09-01 삼성전자주식회사 Network system including server and communication relay device and method of communication relay and ip allocation
CN104009863A (en) * 2013-02-27 2014-08-27 联想(北京)有限公司 Server system and method for automatically acquiring server number
CN110661893A (en) * 2018-06-28 2020-01-07 鸿富锦精密电子(天津)有限公司 Data center management method and data center management system
CN112000607A (en) * 2020-09-11 2020-11-27 苏州浪潮智能科技有限公司 Whole cabinet server node non-contact ID address identification device and method
CN113805950A (en) * 2021-08-30 2021-12-17 超越科技股份有限公司 Method for managing server by cluster management system

Also Published As

Publication number Publication date
CN114531415B (en) 2023-11-21

Similar Documents

Publication Publication Date Title
EP3261300A1 (en) Method and device for establishing link between virtual network functions
US8832238B2 (en) Recording stateless IP addresses
CN109697133A (en) ID generation method, apparatus and system
CN109379448B (en) File distributed deployment method and device, electronic equipment and storage medium
CN109981493B (en) Method and device for configuring virtual machine network
CN111600972B (en) Configuration method of double-stack address, server and readable storage medium
CN102904977B (en) Network address allocation method, server and node
CN114138325A (en) Gray scale publishing method and device
US11025490B2 (en) Method for dynamically managing a network service in a communication network
CN108600407B (en) IP address allocation method, device, equipment and machine readable storage medium
CN107809495B (en) Address management method and device
CN108668179A (en) The transmission method and relevant device of media index file
CN102857547B (en) The method and apparatus of distributed caching
CN114285695B (en) Communication method, device, apparatus, system and storage medium
CN108737586B (en) Disaster recovery switching method and device for domain name query service
CN105704207A (en) Method for generating unique identifier, terminal and network side
CN114531415B (en) Network communication method, data center, device and readable storage medium
CN111541608B (en) Network communication method, system and related device
CN111338758A (en) Resource management method and device and electronic equipment
CN109981694B (en) Synchronization method, server and terminal
CN107547684B (en) IPv6 address allocation method and device
CN109347994B (en) Internet protocol IP address obtaining method and device, storage medium and electronic equipment
CN114422427B (en) Flow balancing method and device, electronic equipment and storage medium
KR100991891B1 (en) Connection management method, system, and program product
CN114338832B (en) Network protocol conversion method and system of container cloud platform

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