CN114598755B - Network protocol start sequence control method, device, equipment and storage medium - Google Patents

Network protocol start sequence control method, device, equipment and storage medium Download PDF

Info

Publication number
CN114598755B
CN114598755B CN202210166894.6A CN202210166894A CN114598755B CN 114598755 B CN114598755 B CN 114598755B CN 202210166894 A CN202210166894 A CN 202210166894A CN 114598755 B CN114598755 B CN 114598755B
Authority
CN
China
Prior art keywords
network
port
network card
protocol
starting
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
CN202210166894.6A
Other languages
Chinese (zh)
Other versions
CN114598755A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210166894.6A priority Critical patent/CN114598755B/en
Publication of CN114598755A publication Critical patent/CN114598755A/en
Application granted granted Critical
Publication of CN114598755B publication Critical patent/CN114598755B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/622Queue service order

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

The application relates to a network protocol starting sequence control method, a device, computer equipment and a storage medium. The method comprises the following steps: responding to a starting instruction of a basic input/output system, determining a network protocol of a network card port to be sequenced, wherein the network card port to be sequenced is a port of network card equipment connected to an interconnection slot of peripheral equipment; acquiring a preset network protocol ordering strategy, and ordering the network protocols of the network card ports to be ordered according to the network protocol ordering strategy to obtain a network protocol starting sequence; and controlling the network protocols of the ports of the network cards to be sequenced to be sequentially started according to the network protocol starting sequence. The method can meet the actual demands of different users on different network protocol starting sequences, thereby improving the installation flexibility and efficiency of the network installation system.

Description

Network protocol start sequence control method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for controlling a network protocol start sequence, a computer device, and a storage medium.
Background
With the development of computer technology, there is a technology of installing an operating system through a network, for example, installing a system through a PXE (Pre-boot Execution Environment ) mechanism, which has two network protocol modes, IPV6 (Internet Protocol version, internet protocol sixth edition) and IPV4 (Internet Protocol version, internet protocol fourth edition), respectively. Due to the limited addresses of the IPV4 protocol, an IPV6 protocol for replacing the IPV4 protocol has emerged. Thus, the network protocols currently used by users are not entirely consistent.
However, when installing a system based on PXE, some users require that the IPV4 protocol be started first, and some users require that the IPV6 protocol be started first, which results in that the network environment cannot be fixed. In the traditional method, the network environment of the network installation system cannot meet the actual demands of different users on different network protocols, so that the system installation flexibility is poor and the efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a network protocol start-up sequence control method, apparatus, computer device, and storage medium that can improve the installation flexibility and efficiency of a network installation system.
A network protocol initiation sequence control method, the method comprising: responding to a starting instruction of a basic input/output system, determining a network protocol of a network card port to be sequenced, wherein the network card port to be sequenced is a port of network card equipment connected to an interconnection slot of peripheral equipment; acquiring a preset network protocol ordering strategy, and ordering the network protocols of the network card ports to be ordered according to the network protocol ordering strategy to obtain a network protocol starting sequence; and controlling the network protocols of the ports of the network cards to be sequenced to be sequentially started according to the network protocol starting sequence.
In one embodiment, the network card ports to be ordered are multiple, and the network protocol controlling the network card ports to be ordered is started in sequence according to the network protocol starting sequence, including: acquiring unique identification information of each network card port to be sequenced, and sequencing each network card port to be sequenced according to each unique identification information to obtain a port starting sequence; and controlling each network protocol of each network card port to be sequenced to start in sequence according to the port starting sequence and the network protocol starting sequence.
In one embodiment, the unique identification information is information for identifying the port of the network card, which is composed of a segment number, a bus number, a device number, and a function number.
In one embodiment, before determining the network protocol of the network card ports to be ordered, the method further comprises: acquiring equipment information of current equipment; judging whether the current equipment is network card equipment according to the equipment information; if yes, the step of determining the network protocol of the network card port to be sequenced is entered.
In one embodiment, the network card ports to be ordered are multiple, and the network protocol controlling the network card ports to be ordered is started in sequence according to the network protocol starting sequence, including: acquiring a preset port starting sequence which is preset; and controlling each network protocol of each network card port to be sequenced to start in sequence according to the preset port starting sequence and the network protocol starting sequence.
In one embodiment, the method further comprises: identifying a port of the network card device newly accessed to the peripheral device interconnection slot; and taking the port of the newly accessed network card equipment as a network card port to be sequenced, and entering a step of determining the network protocol of the network card port to be sequenced.
In one embodiment, the method further comprises: when the network card port accessed in the current starting is detected to be consistent with the network card port accessed in the last starting, each network protocol of each network card port is started in sequence according to the port starting sequence and the network protocol starting sequence in the last starting.
A network protocol initiation sequence control apparatus, the apparatus comprising:
the protocol determining module is used for responding to the starting instruction of the basic input and output system, determining the network protocol of the network card port to be sequenced, wherein the network card port to be sequenced is the port of the network card device which is connected to the peripheral device interconnection slot;
the protocol ordering module is used for acquiring a preset network protocol ordering strategy, ordering the network protocols of the network card ports to be ordered according to the network protocol ordering strategy, and obtaining a network protocol starting sequence;
and the protocol starting module is used for controlling the network protocols of the ports of the network cards to be sequenced to be started in sequence according to the network protocol starting sequence.
Responding to a starting instruction of a basic input/output system, determining a network protocol of a network card port to be sequenced, wherein the network card port to be sequenced is a port of network card equipment connected to an interconnection slot of peripheral equipment; acquiring a preset network protocol ordering strategy, and ordering the network protocols of the network card ports to be ordered according to the network protocol ordering strategy to obtain a network protocol starting sequence; and controlling the network protocols of the ports of the network cards to be sequenced to be sequentially started according to the network protocol starting sequence.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the network protocol initiation sequence control method described above when the computer program is executed.
A computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of the network protocol initiation sequence control method described above.
According to the network protocol starting sequence control method, the device, the computer equipment and the storage medium, when the basic input/output system is started, the preset network protocol ordering strategy is obtained, the network protocols corresponding to the network card ports of the network card equipment connected to the peripheral equipment interconnection slot are ordered according to the network protocol ordering strategy, the network protocols of the network card ports are controlled to be sequentially started according to the ordering result, the network protocols can be automatically ordered according to the starting requirements of users on the network protocols and are sequentially started according to the ordering result, and therefore the actual requirements of different users on different network protocols can be met, and the installation flexibility and efficiency of the network installation system can be improved.
Drawings
FIG. 1 is a flow chart of a method for controlling a network protocol start sequence in one embodiment;
FIG. 2 is a schematic diagram of a sequencing result after sequencing according to a port start sequence and a network protocol start sequence in one embodiment;
FIG. 3 is a schematic diagram of a sequencing result after sequencing according to a port start sequence and a network protocol start sequence in another embodiment;
FIG. 4 is a flow chart of a method for controlling the start sequence of a network protocol in an application example;
FIG. 5 is a block diagram of a network protocol initiation sequence control device in one embodiment;
fig. 6 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The network protocol starting sequence control method provided by the application can be applied to various server devices. In one embodiment, as shown in fig. 1, a network protocol start sequence control method is provided, and the method is applied to a server for illustration, and includes the following steps:
step S102: and responding to a starting instruction of the basic input/output system, determining a network protocol of a network card port to be sequenced, wherein the network card port to be sequenced is a port of network card equipment connected to the peripheral equipment interconnection slot.
The BIOS (Basic Input Output System, basic input/output system) is a set of programs solidified on ROM (Read-Only Memory) chip on the motherboard in the computer, which stores the most important programs of basic input/output, system setting information, self-checking program after starting up, and system self-starting program. PCI (Peripheral Component Interconnect ) slots are expansion slots for PCI local bus based component expansion interfaces. The device accessing the PCI slot may be referred to as a PCI device, wherein the PCI device accessing the PCI slot may include a network card device, i.e., a network interface card device, which is a computer hardware device allowing network connection. One network card device may include at least one network card port, where the network card port to be sequenced refers to a network card port to be sequenced in a network protocol start sequence.
Specifically, the server responds to a start instruction of the BIOS basic input output system, takes a port of the network card device accessed to the PCI slot as a network card port to be sequenced in a POST (Power On SelfTest, power-on self-test) process of starting the BIOS basic input output system, and determines which protocol is a network protocol corresponding to the network card port to be sequenced through analysis. Illustratively, in a network environment based on the PXE mechanism, the network protocol may include an IPV4 protocol and/or an IPV6 protocol, etc., and in other network environments, for example, a network environment of the HTTP (Hyper Text Transfer Protocol, hypertext transfer) protocol, the network protocol may also include an HTTP protocol, etc., that is, the scheme of the present application is not limited to the network environment and the type of the network protocol.
Step S104: and acquiring a preset network protocol ordering strategy, and ordering the network protocols of the network card ports to be ordered according to the network protocol ordering strategy to obtain a network protocol starting sequence.
The network protocol ordering policy may be preset according to different requirements of the user on the network protocol. For example, if the requirement of the user on the IPV6 protocol is greater than that of the IPV4 protocol, it may be set to preferentially start the IPV6 protocol, and start the IPV4 protocol after starting the IPV6 protocol, that is, it may be preset that the starting priority of the IPV6 protocol is higher than that of the IPV4 protocol, and then the starting sequence of the network protocol of the network card port to be sequenced may be: IPV 6-IPV 4; or if the requirement of the user on the IPV4 protocol is greater than that of the IPV6 protocol, it may be set to start the IPV4 protocol preferentially, and start the IPV6 protocol after starting the IPV4 protocol, that is, it may be set in advance that the starting priority of the IPV4 protocol is higher than that of the IPV6 protocol, and then the starting sequence of the network protocol of the network card ports to be sequenced may be: IPV 4- & gtIPV 6.
Specifically, in the process of power-on self-test when the basic input/output system of the server is started, the server can acquire a network protocol sequencing strategy preset by a user, obtain starting priorities of various network protocols preset by the user by analyzing the network protocol sequencing strategy, and sequence the starting orders of various network protocols of the network card ports to be sequenced according to the starting priorities of various network protocols from high to low, so as to obtain the network protocol starting order on which the starting depends.
For example, the number of the network card ports to be ordered may be one or more, and in the case that the number of the network card ports to be ordered is one, the network protocols of the network card ports to be ordered may be ordered only; and under the condition that a plurality of network card ports to be ordered are provided, the network protocols of the network card ports to be ordered can be ordered respectively, and then the starting sequence of the network card ports to be ordered is ordered according to a default or user-defined port ordering strategy of the network card ports.
Step S106: and controlling the network protocols of the ports of the network cards to be sequenced to be sequentially started according to the network protocol starting sequence.
Specifically, the network protocols of one or more network card ports to be sequenced are sequenced according to a preset network protocol sequencing strategy, and after the network protocol starting sequence corresponding to each network card port to be sequenced on which the starting is dependent is obtained, the network protocols of each network card port to be sequenced can be controlled to start the network protocols in sequence according to the corresponding network protocol starting sequence when the starting is carried out to each network card port to be sequenced.
The network protocol starting sequence of the current network card port to be sequenced obtained by the server is as follows: IPV 6- & gtIPV 4, when the starting is carried out to the current network card port to be sequenced, controlling the IPV6 protocol of the current network card port to be sequenced to start first, and after the IPV6 protocol is started, controlling the IPV4 protocol of the current network card port to be sequenced to start; or, the network protocol starting sequence of the current network card port to be sequenced obtained by the server is as follows: and when the starting is carried out to the current network card port to be sequenced, controlling the IPV4 protocol of the current network card port to be sequenced to start first, and after the IPV4 protocol is started, controlling the IPV6 protocol of the current network card port to be sequenced to start.
According to the network protocol starting sequence control method, when the basic input and output system is started, the preset network protocol ordering strategy is obtained, the network protocols corresponding to the network card ports of the network card equipment connected to the peripheral equipment interconnection slot are ordered according to the network protocol ordering strategy, the network protocols of the network card ports are controlled to be sequentially started according to the ordering result, the network protocols can be automatically ordered according to the starting requirements of users on the network protocols and sequentially started according to the ordering result, and therefore the actual requirements of different users on the starting sequences of different network protocols can be met, and the installation flexibility and efficiency of the network installation system can be improved.
In one embodiment, the network card ports to be ordered are multiple, and the network protocol controlling the network card ports to be ordered is started in sequence according to the network protocol starting sequence, including: acquiring unique identification information of each network card port to be sequenced, and sequencing each network card port to be sequenced according to each unique identification information to obtain a port starting sequence; and controlling each network protocol of each network card port to be sequenced to start in sequence according to the port starting sequence and the network protocol starting sequence.
In this embodiment, the number of network card ports to be ordered may be plural. That is, there may be multiple network card devices accessing the PCI slot, each network card device includes at least one network card port, and any network card port of any network card device accessing the PCI slot may be used as the network card port to be sequenced. Alternatively, the network card device accessing the PCI slot may be one, but the network card device includes a plurality of network card ports, and any one of the network card ports of the network card device may be used as the network card port to be sequenced.
Illustratively, the unique identification information refers to information for identifying network card ports, each configured with a unique identification information. Preferably, the unique identification information may be composed of a segment number, a bus number, a device number, and a function number of the PCI device. For example, the unique identification information of the network card port may be represented by the following form: segment (Segment number): bus (Bus number): dev (device number): fun (function number).
More specifically, when the plurality of network card ports to be sequenced, the sequence may be performed according to the segment number, the bus number, the device number and the function number in the unique identification information, and for example, the priority of the segment number, the bus number, the device number and the function number may be that the segment number > the bus number > the device number > the function number, that is, the segment numbers of the PCI devices to which the plurality of network card ports to be sequenced belong are preferentially compared, if the segment numbers are the same, the bus numbers of the PCI devices to which the plurality of network card ports to be sequenced belong are continuously compared, if the bus numbers are the same, the device numbers of the PCI devices to which the plurality of network card ports to be sequenced belong are continuously compared, and if the device numbers are the same, the device function numbers of the PCI devices to which the plurality of network card ports to be sequenced belong are finally compared.
For example, referring to fig. 2 and 3, fig. 2 is a schematic diagram illustrating a sequencing result after sequencing according to a port start sequence and a network protocol start sequence in one embodiment, where, as shown in fig. 2, the network protocol is sequenced according to a sequencing policy with a start priority of the IPV6 protocol being greater than a start priority of the IPV4 protocol. The network protocols of the network card ports can be started in sequence according to the arrangement sequence of the arrows from top to bottom in the figure.
Illustratively, fig. 3 shows a schematic diagram of a sequencing result after sequencing a network protocol according to a port start sequence and a network protocol start sequence in another embodiment, where, as shown in fig. 3, the network protocol is sequenced according to a sequencing policy with a start priority of an IPV4 protocol being greater than a start priority of an IPV6 protocol. The network protocols of the network card ports can be started in sequence according to the arrangement sequence of the arrows from top to bottom in the figure.
In one embodiment, before determining the network protocol of the network card ports to be ordered, the method further comprises: acquiring equipment information of current equipment; judging whether the current equipment is network card equipment according to the equipment information; if yes, the step of determining the network protocol of the network card port to be sequenced is entered. The current device refers to a PCI device which is to be detected currently and is accessed to the peripheral device interconnection slot.
In this embodiment, in the starting process of the BIOS basic input/output system, that is, in the power-on self-checking process, whether the PCI device accessing the peripheral device interconnection slot is a network card device may be first determined, after the PCI device is determined to be the network card device, a step of determining a network protocol of a port of the PCI device is entered, specifically, which type (for example, types such as an IPV6 protocol and/or an IPV4 protocol) the network protocol of the network card port of the network card device belongs to may be determined through an information device path of the network card device; if it is determined that the PCI device is not a network card device, processing of the PCI device may be skipped. According to the embodiment, the network card equipment can be accurately identified and the network card ports can be determined, so that the accuracy of ordering the network card ports is improved, and the processing of unnecessary equipment is reduced.
In one embodiment, the network card ports to be ordered are multiple, and the network protocol controlling the network card ports to be ordered is started in sequence according to the network protocol starting sequence, including: acquiring a preset port starting sequence which is preset; and controlling each network protocol of each network card port to be sequenced to start in sequence according to the preset port starting sequence and the network protocol starting sequence.
In this embodiment, a preset port starting sequence configured by user definition is supported, and a user may configure the starting sequence of each network card port in advance according to service requirements and the like. Specifically, the server may read the preset port starting sequence preset by the user preferentially, and after the server successfully reads the preset port starting sequence preset by the user, the server may directly start each network card port in sequence according to the preset port starting sequence, and start each network protocol of each network card port in sequence according to the network protocol starting sequence. When the server fails to read the preset port starting sequence, that is, the preset port starting sequence preset by the user does not exist, or the preset port starting sequence preset by the user is out of date, the server can further automatically sequence the starting sequence of each network card port according to the unique identification information of each network card port, and sequentially start each network card port and the network protocol thereof according to the port starting sequence after the automatic sequence.
Illustratively, the port start sequence is obtained by sorting the unique identification information of the network card ports: port 1- & gt port 2- & gt port 3, the network protocol ordering strategy is: the IPV6 protocol is started in preference to the IPV4 protocol, and the starting sequence of the network protocols of the ports of each network card is as follows: IPV6 protocol of port 1, IPV4 protocol of port 1, IPV6 protocol of port 2, IPV4 protocol of port 2, IPV6 protocol of port 3, IPV4 protocol of port 3.
Illustratively, the port start sequence is obtained by sorting the unique identification information of the network card ports: port 1- & gt port 2- & gt port 3, the network protocol ordering strategy is: the IPV4 protocol is started in preference to the IPV6 protocol, and the starting sequence of the network protocols of the ports of each network card is as follows: IPV4 protocol of port 1, IPV6 protocol of port 1, IPV4 protocol of port 2, IPV6 protocol of port 2, IPV4 protocol of port 3, IPV6 protocol of port 3.
The preset port starting sequence preset by the user and successfully read by the server is as follows: port 2- & gt port 3- & gt port 1, the network protocol ordering strategy is: the IPV6 protocol is started in preference to the IPV4 protocol, and the starting sequence of the network protocols of the ports of each network card is as follows: IPV6 protocol of port 2, IPV4 protocol of port 2, IPV6 protocol of port 3, IPV4 protocol of port 3, IPV6 protocol of port 1, IPV4 protocol of port 1.
In one embodiment, identifying a port of a network card device that newly accesses an interconnect slot of a peripheral device; and taking the port of the newly accessed network card equipment as a network card port to be sequenced, and entering a step of determining the network protocol of the network card port to be sequenced.
In this embodiment, when the server restarts or inserts the network card device, the server may be controlled to identify the network card port of the network card device newly accessed to the peripheral device interconnection slot, and the identified network card port newly accessed is also used as the network card port to be sequenced, so as to automatically restart all network card ports including the network card port newly accessed.
In this embodiment, even if a network card device is newly accessed in the starting process, or in the starting interrupt restarting process, automatic reassignment can be performed only by generating a new network card port, manual intervention on the newly accessed device is not required, and the starting sequence is not required to be manually fixed, which greatly helps the server to match a plurality of network cards and fix the starting sequence, and the efficiency of installing the system can be improved.
In one embodiment, the method further comprises: when the network card port accessed in the current starting is detected to be consistent with the network card port accessed in the last starting, each network protocol of each network card port is started in sequence according to the port starting sequence and the network protocol starting sequence in the last starting.
In this embodiment, before each start and sequence, it may be preferentially detected whether the network card device connected to the peripheral device interconnection slot and the network card ports of each network card device change at this start, and if the network card devices and the network card ports thereof do not change, such as increase, decrease, and replacement, at this start and last start, then the sequence of the start sequences of the network protocols of each network card port may not be re-performed, and each network protocol of each network card port may be started in sequence directly according to the start sequence of the network protocol at last start.
According to the embodiment, the consistency of the network card equipment and the network card ports accessed in the last startup is judged, so that the waste of computing resources caused by repeated sequencing operation can be reduced, and the startup efficiency is further improved.
More specifically, referring to fig. 4, fig. 4 is a schematic flow chart of a network protocol start sequence control method in an application example. The network protocol start sequence control method according to the present application is further described in detail below with reference to an application example, and may specifically include the following:
step 1: in the starting process, namely the POST process, the BIOS can firstly judge whether the PCI equipment is the network card equipment, and if the PCI equipment is not the network card equipment, the PCI equipment can be skipped to not process; if the network card device is the network card device, the network card device can be classified into a network card function class, and whether the port (network card port) of the network card device is an IPV6 protocol or an IPV4 protocol is confirmed through the information device path of the network card device.
Step 2: and acquiring a preset network protocol ordering strategy. Wherein, if the preset network protocol ordering policy is: before the IPV6 is started and after the IPV4 is started, the IPV6 protocol of the network card port is ranked at a higher priority, and the IPV4 protocol is ranked at a lower priority; or if the preset network protocol ordering policy is: before the start of the IPV4 and after the start of the IPV6, the IPV4 protocol of the port of the network card is ranked at a higher priority, and the IPV6 protocol is ranked at a lower priority.
Step 3: and (2) ordering network protocols according to the network protocol ordering strategy in the step (2) for one network card port of one network card device, and acquiring identification information of each network card device and the network card ports of the network card devices according to segments of each network card port: bus: dev: fun orders the port start sequence.
Step 4: after the ordering is finished, whether the starting sequence of the network card ports is manually adjusted is confirmed, if so, the manual adjustment sequence is kept not to reorder the network card ports, and if so, the network card ports are saved into a network card functional group according to the newly adjusted starting sequence, and according to Segment: bus: dev: fun and network protocol ordering strategy, according to the IPV6 protocol of the network port 1, the IPV4 protocol of the network port 1, the IPV6 protocol of the network port 2, the IPV4 protocol … … of the network port 2, the IPV6 protocol of the network port N and the IPV4 protocol of the network port N, re-ordering from small to large. Or, according to Segment: bus: dev: fun and network protocol ordering strategy, according to the IPV4 protocol of the network port 1, the IPV6 protocol of the network port 1, the IPV4 protocol of the network port 2, the IPV6 protocol … … of the network port 2, the IPV4 protocol of the network port N and the IPV6 protocol of the network port N, re-ordering from small to large.
Step 5: and comparing with the network card functional group at the last starting, if the newly accessed network card equipment or the newly identified network card port is found, then sequencing the starting sequence, updating the network card functional group according to the latest starting sequence, and starting each network protocol of each network card port in turn according to the latest port starting sequence and the network protocol starting sequence, and if the newly accessed network card equipment is not available or the new network card port is not identified, then starting the network card according to the last port and the network protocol starting sequence.
Step 6: after restarting the server, the steps 1 to 5 are re-executed, and the above steps can be equally applied to the network environment of the HTTP protocol.
The network protocol starting sequence control method has strong replicability and expansibility, the starting sequence of the IPV6 and/or the IPV4 of each network card port is adjusted according to the preset network protocol sequencing strategy by analyzing the network protocol of the network card port, the requirements of different data centers and users can be met, even if a plurality of network card ports of a plurality of network card devices occur, the port starting sequence can be arranged according to the unique identification information, and then each network protocol of each network card port is started in sequence according to the network protocol starting sequence of each network card port. Even if a new network card port appears in the process of accessing a new network card device or restarting a server, the new network card port can still be reordered automatically, and meanwhile, the port starting sequence set manually can also be supported. Therefore, the efficiency of installing the system through the network can be improved. It is worth noting that the technical scheme of the application is not affected by the processor architecture, can be applied to server products of multiple architectures such as ARM, X86 and MIPS, and is beneficial to large-scale purchasing and deploying of the multi-network card server for Internet clients.
It should be understood that, although the steps in the flowcharts of fig. 1 and 4 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1 and 4 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of the other steps or sub-steps of other steps.
In one embodiment, as shown in fig. 5, there is provided a network protocol start-up sequence control apparatus, including: a protocol determination module 510, a protocol ordering module 520, and a protocol initiation module 530, wherein:
the protocol determining module 510 is configured to determine, in response to a start instruction of the basic input/output system, a network protocol of a network card port to be sequenced, where the network card port to be sequenced is a port of a network card device that accesses an interconnection slot of a peripheral device;
the protocol ordering module 520 is configured to obtain a preset network protocol ordering policy, order the network protocols of the network card ports to be ordered according to the network protocol ordering policy, and obtain a network protocol starting sequence;
the protocol starting module 530 is configured to control the network protocols of the network card ports to be sequenced to start sequentially according to the network protocol starting sequence.
In one embodiment, the number of network card ports to be sequenced is multiple, the protocol sequencing module 520 obtains unique identification information of each network card port to be sequenced, and sequences each network card port to be sequenced according to each unique identification information to obtain a port starting sequence; and controlling each network protocol of each network card port to be sequenced to start in sequence according to the port starting sequence and the network protocol starting sequence.
In one embodiment, the protocol determining module 510 is further configured to obtain device information of the current device; judging whether the current equipment is network card equipment according to the equipment information; if yes, the step of determining the network protocol of the network card port to be sequenced is entered.
In one embodiment, the number of network card ports to be sequenced is multiple, and the protocol sequencing module 520 obtains a preset port starting sequence configured in advance; and controlling each network protocol of each network card port to be sequenced to start in sequence according to the preset port starting sequence and the network protocol starting sequence.
In one embodiment, the protocol ordering module 520 is further configured to identify a port of the network card device that is newly accessed to the peripheral device interconnect slot; and taking the port of the newly accessed network card equipment as a network card port to be sequenced, and entering a step of determining the network protocol of the network card port to be sequenced.
In one embodiment, the protocol starting module 530 is further configured to, when detecting that the network card port accessed at the time of the current start is consistent with the network card port accessed at the time of the last start, sequentially start each network protocol of each network card port according to the port start sequence and the network protocol start sequence at the time of the last start.
The specific limitation of the network protocol start sequence control device can be referred to the limitation of the network protocol start sequence control method hereinabove, and will not be described herein. The above-mentioned modules in the network protocol start-up sequence control device may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program when executed by a processor implements a network protocol initiation sequence control method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 6 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of when executing the computer program: responding to a starting instruction of a basic input/output system, determining a network protocol of a network card port to be sequenced, wherein the network card port to be sequenced is a port of network card equipment connected to an interconnection slot of peripheral equipment; acquiring a preset network protocol ordering strategy, and ordering the network protocols of the network card ports to be ordered according to the network protocol ordering strategy to obtain a network protocol starting sequence; and controlling the network protocols of the ports of the network cards to be sequenced to be sequentially started according to the network protocol starting sequence.
In one embodiment, when the processor executes the computer program to control the network protocols of the network card ports to be sequenced to start sequentially according to the network protocol starting sequence, the following steps are specifically implemented: acquiring unique identification information of each network card port to be sequenced, and sequencing each network card port to be sequenced according to each unique identification information to obtain a port starting sequence; and controlling each network protocol of each network card port to be sequenced to start in sequence according to the port starting sequence and the network protocol starting sequence.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring equipment information of current equipment; judging whether the current equipment is network card equipment according to the equipment information; if yes, the step of determining the network protocol of the network card port to be sequenced is entered.
In one embodiment, when the processor executes the computer program to control the network protocols of the network card ports to be sequenced to start sequentially according to the network protocol starting sequence, the following steps are specifically implemented: acquiring a preset port starting sequence which is preset; and controlling each network protocol of each network card port to be sequenced to start in sequence according to the preset port starting sequence and the network protocol starting sequence.
In one embodiment, the processor when executing the computer program further performs the steps of: identifying a port of the network card device newly accessed to the peripheral device interconnection slot; and taking the port of the newly accessed network card equipment as a network card port to be sequenced, and entering a step of determining the network protocol of the network card port to be sequenced.
In one embodiment, the processor when executing the computer program further performs the steps of: when the network card port accessed in the current starting is detected to be consistent with the network card port accessed in the last starting, each network protocol of each network card port is started in sequence according to the port starting sequence and the network protocol starting sequence in the last starting.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: responding to a starting instruction of a basic input/output system, determining a network protocol of a network card port to be sequenced, wherein the network card port to be sequenced is a port of network card equipment connected to an interconnection slot of peripheral equipment; acquiring a preset network protocol ordering strategy, and ordering the network protocols of the network card ports to be ordered according to the network protocol ordering strategy to obtain a network protocol starting sequence; and controlling the network protocols of the ports of the network cards to be sequenced to be sequentially started according to the network protocol starting sequence.
In one embodiment, when the computer program is executed by the processor to control the network protocols of the network card ports to be sequenced to start sequentially according to the network protocol starting sequence, the following steps are specifically implemented: acquiring unique identification information of each network card port to be sequenced, and sequencing each network card port to be sequenced according to each unique identification information to obtain a port starting sequence; and controlling each network protocol of each network card port to be sequenced to start in sequence according to the port starting sequence and the network protocol starting sequence.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring equipment information of current equipment; judging whether the current equipment is network card equipment according to the equipment information; if yes, the step of determining the network protocol of the network card port to be sequenced is entered.
In one embodiment, when the computer program is executed by the processor to control the network protocols of the network card ports to be sequenced to start sequentially according to the network protocol starting sequence, the following steps are specifically implemented: acquiring a preset port starting sequence which is preset; and controlling each network protocol of each network card port to be sequenced to start in sequence according to the preset port starting sequence and the network protocol starting sequence.
In one embodiment, the computer program when executed by the processor further performs the steps of: identifying a port of the network card device newly accessed to the peripheral device interconnection slot; and taking the port of the newly accessed network card equipment as a network card port to be sequenced, and entering a step of determining the network protocol of the network card port to be sequenced.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the network card port accessed in the current starting is detected to be consistent with the network card port accessed in the last starting, each network protocol of each network card port is started in sequence according to the port starting sequence and the network protocol starting sequence in the last starting.
Those skilled in the art will appreciate that all or part of the processes implementing the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the computer program may be stored on a non-volatile computer readable storage medium, and the computer program may include processes of the embodiments of the above methods when executed. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (9)

1. A network protocol initiation sequence control method, the method comprising:
responding to a starting instruction of a basic input/output system, and determining a network protocol of a network card port to be sequenced, wherein the network card port to be sequenced is a port of network card equipment accessed to an interconnection slot of peripheral equipment;
acquiring a preset network protocol ordering strategy, and ordering the network protocols of the network card ports to be ordered according to the network protocol ordering strategy to obtain a network protocol starting sequence;
controlling the network protocols of the network card ports to be sequenced to be sequentially started according to the network protocol starting sequence;
the network protocol for controlling the network card ports to be ordered is started in turn according to the network protocol starting sequence, and the network protocol starting method comprises the following steps:
acquiring unique identification information of each network card port to be sequenced, and sequencing each network card port to be sequenced according to each unique identification information to obtain a port starting sequence;
and controlling each network protocol of each network card port to be sequenced to start in sequence according to the port starting sequence and the network protocol starting sequence.
2. The method of claim 1, wherein the unique identification information is information for identifying a port of the network card, the information being composed of a segment number, a bus number, a device number, and a function number.
3. The method of claim 1, wherein prior to said determining the network protocol of the network card ports to be ordered, the method further comprises:
acquiring equipment information of current equipment;
judging whether the current equipment is network card equipment according to the equipment information;
if yes, the step of determining the network protocol of the network card port to be sequenced is entered.
4. The method of claim 1, wherein the plurality of network card ports to be ordered, the controlling the network protocol of the network card ports to be ordered, sequentially starting according to the network protocol starting sequence, comprises:
acquiring a preset port starting sequence which is preset;
and controlling each network protocol of each network card port to be sequenced to start in sequence according to the preset port starting sequence and the network protocol starting sequence.
5. The method according to claim 1, wherein the method further comprises:
identifying a port of the network card device newly accessed to the peripheral device interconnection slot;
and taking the port of the newly accessed network card equipment as the network card port to be sequenced, and entering the step of determining the network protocol of the network card port to be sequenced.
6. The method according to claim 1, wherein the method further comprises:
when the network card port accessed in the current starting is detected to be consistent with the network card port accessed in the last starting, each network protocol of each network card port is started in sequence according to the port starting sequence and the network protocol starting sequence in the last starting.
7. A network protocol initiation sequence control apparatus, the apparatus comprising:
the protocol determining module is used for responding to a starting instruction of the basic input and output system and determining a network protocol of a network card port to be ordered, wherein the network card port to be ordered is a port of network card equipment connected to the peripheral equipment interconnection slot;
the protocol ordering module is used for acquiring a preset network protocol ordering strategy, ordering the network protocols of the network card ports to be ordered according to the network protocol ordering strategy, and obtaining a network protocol starting sequence;
the protocol starting module is used for controlling the network protocols of the network card ports to be sequenced to be sequentially started according to the network protocol starting sequence; the protocol starting module is used for acquiring unique identification information of each network card port to be ordered when the network protocols of the network card ports to be ordered are controlled to be started in sequence according to the network protocol starting sequence, and ordering the network card ports to be ordered according to the unique identification information to obtain a port starting sequence; and controlling each network protocol of each network card port to be sequenced to start in sequence according to the port starting sequence and the network protocol starting sequence.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 6 when the computer program is executed by the processor.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202210166894.6A 2022-02-23 2022-02-23 Network protocol start sequence control method, device, equipment and storage medium Active CN114598755B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210166894.6A CN114598755B (en) 2022-02-23 2022-02-23 Network protocol start sequence control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210166894.6A CN114598755B (en) 2022-02-23 2022-02-23 Network protocol start sequence control method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114598755A CN114598755A (en) 2022-06-07
CN114598755B true CN114598755B (en) 2023-08-11

Family

ID=81806391

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210166894.6A Active CN114598755B (en) 2022-02-23 2022-02-23 Network protocol start sequence control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114598755B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221581A (en) * 2019-12-27 2020-06-02 苏州浪潮智能科技有限公司 Network card starting method, equipment and storage medium
CN112905252A (en) * 2021-02-20 2021-06-04 山东英信计算机技术有限公司 Sequencing method and medium for server BIOS startup item sequence
CN113783957A (en) * 2021-09-10 2021-12-10 西安热工研究院有限公司 Network port multiplexing method, system, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4912109B2 (en) * 2006-10-20 2012-04-11 キヤノン株式会社 Information processing apparatus, information processing method, and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221581A (en) * 2019-12-27 2020-06-02 苏州浪潮智能科技有限公司 Network card starting method, equipment and storage medium
CN112905252A (en) * 2021-02-20 2021-06-04 山东英信计算机技术有限公司 Sequencing method and medium for server BIOS startup item sequence
CN113783957A (en) * 2021-09-10 2021-12-10 西安热工研究院有限公司 Network port multiplexing method, system, equipment and storage medium

Also Published As

Publication number Publication date
CN114598755A (en) 2022-06-07

Similar Documents

Publication Publication Date Title
CN110765026B (en) Automatic test method, device, storage medium and equipment
CN107368343B (en) Terminal starting method based on android system, terminal and storage medium
CN110045991B (en) RAID configuration method and device of server, computer equipment and storage medium
CN112272218B (en) Cloud platform instance resource operation method and device, computer equipment and storage medium
CN109408122B (en) Equipment starting method, electronic equipment and computer storage medium
CN113434202B (en) Device starting method and device, electronic device and computer storage medium
CN111124508A (en) Method and device for adjusting PXE (PCI extensions for instrumentation) starting sequence of network card
CN110618819B (en) Method, device and computer equipment for automatic batch deployment of WINPE (WINPE) system
CN111338698A (en) Method and system for accurately booting server by BIOS (basic input output System)
CN112346818A (en) Container application deployment method and device, electronic equipment and storage medium
CN111124509B (en) Server starting method and device
CN116700809B (en) Self-adaptive support method and device for server pre-starting function
CN114598755B (en) Network protocol start sequence control method, device, equipment and storage medium
CN115495161B (en) BIOS option modification validation method and device and storage medium
CN113986357A (en) Method, apparatus and storage medium for establishing communication link
CN111400113B (en) Complete machine self-checking method, device and system of computer system
CN113760623A (en) Method and device for testing TCG (trusted computing group) protocol function of solid state disk and computer equipment
CN109684134B (en) Method and server for rapidly deploying firmware settings among multiple devices
CN109710319B (en) Method and system for identifying in-place hard disk of computer
CN110059071B (en) Data comparison monitoring method, system, equipment and medium based on storage process
CN114116033B (en) Method and device for modifying server configuration
CN113900934B (en) Multi-mirror hybrid refresh test method, system, terminal and storage medium
CN113986271A (en) Method, device and equipment for automatically creating RAID (redundant array of independent disks) in system installation process
CN116737187A (en) Processing method and device of operating system, storage medium and electronic equipment
CN113656082A (en) Network kernel loading method, management server and application server

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