CN114598755A - Network protocol starting sequence control method, device, equipment and storage medium - Google Patents

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

Info

Publication number
CN114598755A
CN114598755A CN202210166894.6A CN202210166894A CN114598755A CN 114598755 A CN114598755 A CN 114598755A CN 202210166894 A CN202210166894 A CN 202210166894A CN 114598755 A CN114598755 A CN 114598755A
Authority
CN
China
Prior art keywords
network
port
network card
protocol
network protocol
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
CN202210166894.6A
Other languages
Chinese (zh)
Other versions
CN114598755B (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

Images

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 network protocol starting sequence control device, computer equipment and a storage medium. The method comprises the following steps: responding to a starting instruction of a basic input and 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 a network card device accessed to an interconnection slot of peripheral equipment; acquiring a preset network protocol sorting strategy, and sorting the network protocols of the network card ports to be sorted according to the network protocol sorting strategy to obtain a network protocol starting sequence; and controlling the network protocol of the network card port to be sequenced to be sequentially started according to the network protocol starting sequence. The method can meet the actual requirements of different users on the starting sequence of different network protocols, thereby improving the installation flexibility and efficiency of the network installation system.

Description

Network protocol starting 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 an 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 for installing an operating system through a network, for example, a PXE (Pre-boot Execution Environment) mechanism for installing a system, and the like, where the PXE mechanism has two network Protocol modes, i.e., IPV6(Internet Protocol version 6, sixth edition) and IPV4(Internet Protocol version 4, fourth edition). Due to the limited address of the IPV4 protocol, an IPV6 protocol has emerged as an alternative to IPV 4. Therefore, the network protocols currently used by users are not completely consistent.
However, when installing the system based on PXE, some users require to start the IPV4 protocol first, and some users require to start the IPV6 protocol first, which results in that the network environment cannot be fixed. In the conventional method, the network environment of the network installation system cannot meet the actual requirements of different users on different network protocols, so that the system installation has poor flexibility and low efficiency.
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 capable of improving 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 and 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 a network card device accessed to an interconnection slot of peripheral equipment; acquiring a preset network protocol sorting strategy, and sorting the network protocols of the network card ports to be sorted according to the network protocol sorting strategy to obtain a network protocol starting sequence; and controlling the network protocol of the network card port to be sequenced to be sequentially started according to the network protocol starting sequence.
In one embodiment, the method for controlling the network card ports to be sorted sequentially according to the network protocol starting sequence includes: unique identification information of each network card port to be sequenced is obtained, and the network card ports to be sequenced are sequenced according to the unique identification information to obtain a port starting sequence; and controlling the network protocols of the network card ports to be sequenced to be sequentially started according to the port starting sequence and the network protocol starting sequence.
In one embodiment, the unique identification information is information for identifying the network card port, 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 port to be ordered, the method further comprises: acquiring equipment information of current equipment; judging whether the current equipment is network card equipment or not according to the equipment information; if yes, entering a step of determining the network protocol of the network card port to be sequenced.
In one embodiment, the method for controlling the network card ports to be sorted sequentially according to the network protocol starting sequence includes: acquiring a preset port starting sequence configured in advance; and controlling each network protocol of each network card port to be sequenced to be sequentially started according to a preset port starting sequence and a network protocol starting sequence.
In one embodiment, the method further comprises: identifying the port of the network card equipment newly accessed to the peripheral equipment interconnection slot; and taking the port of the newly accessed network card equipment as the port of the network card to be sorted, and entering the step of determining the network protocol of the port of the network card to be sorted.
In one embodiment, the method further comprises: and when detecting that the network card port accessed during the current starting is consistent with the network card port accessed during the last starting, sequentially starting each network protocol of each network card port according to the port starting sequence and the network protocol starting sequence during the last starting.
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 sequenced, wherein the network card port to be sequenced is a port of network card equipment accessed to an interconnection slot of peripheral equipment;
the protocol sorting module is used for acquiring a preset network protocol sorting strategy and sorting the network protocols of the network card ports to be sorted according to the network protocol sorting strategy to obtain a network protocol starting sequence;
and 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.
Responding to a starting instruction of a basic input and 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 a network card device accessed to an interconnection slot of peripheral equipment; acquiring a preset network protocol sorting strategy, and sorting the network protocols of the network card ports to be sorted according to the network protocol sorting strategy to obtain a network protocol starting sequence; and controlling the network protocol of the network card port 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 initiated sequence control method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned network protocol startup sequence control method.
According to the method, the device, the computer equipment and the storage medium for controlling the starting sequence of the network protocols, when the basic input and output system is started, the preset network protocol sequencing strategy is obtained, the network protocols corresponding to the network card ports of the network card equipment accessed to the peripheral equipment interconnection slots are sequenced according to the network protocol sequencing strategy, the network protocols of the network card ports are controlled to be started in sequence according to the sequencing result, the network protocols can be automatically sequenced according to the starting requirements of users on the network protocols and started in sequence according to the sequencing result, therefore, the actual requirements of different users on different network protocols can be met, and the mounting flexibility and efficiency of the network-based mounting system can be improved.
Drawings
FIG. 1 is a flow diagram illustrating a network protocol initiation sequence control method according to an embodiment;
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 an embodiment;
fig. 3 is a schematic diagram illustrating a sequencing result after sequencing according to a port starting sequence and a network protocol starting sequence in another embodiment;
FIG. 4 is a flowchart illustrating a network protocol start sequence control method in an application example;
FIG. 5 is a block diagram showing the structure of a network protocol start-up sequence control apparatus according to an embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present 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, which is described by taking the method as an example applied to a server, and includes the following steps:
step S102: and responding to a starting instruction of the basic input and 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 a network card device accessed to an interconnection slot of the peripheral device.
The BIOS (Basic Input Output System) is a set of programs that are solidified on a ROM (Read-Only Memory) chip on a main board in the computer, and stores the most important programs for Basic Input and Output, System setting information, a self-test program after power-on, a System self-start program, and the like of the computer. A PCI (Peripheral Component Interconnect) slot is an expansion slot based on a Component expansion interface of a PCI local bus. The device accessing the PCI slot may be referred to as a PCI device, where the PCI device accessing the PCI slot may include a network card device, and the network card device is a computer hardware device that allows network connection. One network card device may include at least one network card port, and the network card port to be sorted refers to a network card port to be subjected to network protocol start sequence sorting.
Specifically, the server responds to a start instruction of the BIOS, and in a POST (Power On self test) process of the BIOS, the server determines, as a network card port to be ordered, a port of the network card device that is accessed to the PCI slot, and determines, through analysis, which protocol a network protocol corresponding to the network card port to be ordered corresponds to. Illustratively, in a network environment based on the PXE mechanism, the network Protocol may include an IPV4 Protocol and/or an IPV6 Protocol, and in other network environments, for example, in a network environment of an HTTP (hypertext Transfer Protocol), the network Protocol may also include an HTTP Protocol, and the like, that is, the scheme of the present application does not specifically limit the network environment and the type of the network Protocol.
Step S104: and acquiring a preset network protocol sorting strategy, and sorting the network protocols of the network card ports to be sorted according to the network protocol sorting strategy to obtain a network protocol starting sequence.
The network protocol ordering strategy can be preset according to different requirements of users on network protocols. For example, if the user's requirement for the IPV6 protocol is greater than that of the IPV4 protocol, the IPV6 protocol may be set to be started preferentially, and the IPV4 protocol is started after the IPV6 protocol is started, that is, the starting priority of the IPV6 protocol may be set to be higher than that of the IPV4 protocol in advance, and the starting order of the network protocol of the network card port to be sorted may be: IPV6 → IPV 4; or, if the user's requirement for the IPV4 protocol is greater than that of the IPV6 protocol, the IPV4 protocol may be set to be started preferentially, and the IPV6 protocol is started after the IPV4 protocol is started, that is, the starting priority of the IPV4 protocol may be set to be higher than that of the IPV6 protocol in advance, and the starting order of the network protocols of the network card ports to be sorted may be: IPV4 → IPV 6.
Specifically, in the process of power-on self-test when the basic input/output system of the server is started, the server may obtain a network protocol sorting strategy preset by a user, obtain starting priorities of various network protocols preset by the user by analyzing the network protocol sorting strategy, and sort the starting sequences of the various network protocols of the network card port to be sorted according to the starting priorities of the various network protocols from high to low, so as to obtain a network protocol starting sequence depended on by the starting.
For example, the number of the network card ports to be sorted may be one or more, and in the case that there is one network card port to be sorted, the network card ports to be sorted may be sorted only by each network protocol; when the number of the network card ports to be sorted is multiple, the network protocols of the network card ports to be sorted can be sorted respectively, and then the starting sequence of the network card ports to be sorted is sorted according to a default or user-defined port sorting strategy of the network card ports.
Step S106: and controlling the network protocols of the network card ports 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 sorted are sorted according to a preset network protocol sorting strategy, and after a network protocol starting sequence corresponding to each network card port to be sorted, which is depended by the starting, is obtained, the network protocols of each network card port to be sorted 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 sorted.
Illustratively, the network protocol starting sequence of the current network card port to be sequenced obtained by the server is as follows: the method comprises the steps that IPV6 → IPV4, when starting is carried out to a current network card port to be sequenced, the IPV6 protocol of the current network card port to be sequenced is controlled to be started firstly, and after the IPV6 protocol is started, the IPV4 protocol of the current network card port to be sequenced is controlled to be started; or, the network protocol starting sequence of the current network card port to be sequenced obtained by the server is as follows: the IPV4 → IPV6 controls the IPV4 protocol of the current network card port to be sorted to be started first when the network card port to be sorted is started, and controls the IPV6 protocol of the current network card port to be sorted to be started after the IPV4 protocol is started.
According to the network protocol starting sequence control method, when the basic input/output system is started, the preset network protocol sequencing strategy is obtained, the network protocols corresponding to the network card ports of the network card equipment accessed to the peripheral equipment interconnection slots are sequenced according to the network protocol sequencing strategy, the network protocols of the network card ports are controlled to be started in sequence according to the sequencing result, the network protocols can be automatically sequenced according to the starting requirements of users on the network protocols, and the network protocols are started in sequence according to the sequencing result, so that the actual requirements of different users on the starting sequences of different network protocols can be met, and the mounting flexibility and the mounting efficiency of the network mounting system can be improved.
In one embodiment, the method for controlling the network card ports to be sorted sequentially according to the network protocol starting sequence includes: 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 the network protocols of the network card ports to be sequenced to be sequentially started according to the port starting sequence and the network protocol starting sequence.
In this embodiment, there may be a plurality of network card ports to be sorted. That is to say, the number of the network card devices accessing the PCI slot may be multiple, each network card device includes at least one network card port, and any one network card port of any one network card device accessing the PCI slot may be used as the network card port to be sorted. Or, one network card device may be used to access the PCI slot, but the network card device includes a plurality of network card ports, and any one network card port of the network card device may be used as the network card port to be sorted.
Illustratively, the unique identification information refers to information for identifying network card ports, and each network card port is configured to correspond to one 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 can be represented by the following form: segment (Segment number): bus (Bus number): dev (device No.: fun (function number).
More specifically, when the plurality of network card ports to be sorted are sorted, the network card ports to be sorted may be sorted 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 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 sorted 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 sorted belong are continuously compared, if the segment numbers are the same, the device numbers of the PCI devices to which the plurality of network card ports to be sorted 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 sorted belong are finally compared.
Illustratively, referring to fig. 2 and fig. 3, fig. 2 is a schematic diagram illustrating the sorted results in one embodiment after sorting according to the port activation order and the network protocol activation order, as shown in fig. 2, the network protocols are sorted according to a sorting policy that the activation priority of the IPV6 protocol is greater than the activation priority of the IPV4 protocol. The network protocols of the network card ports can be sequentially started according to an arrangement sequence shown by arrows in the figure from top to bottom.
Fig. 3 is a schematic diagram illustrating the sorting results after sorting the network protocols according to the port activation order and the network protocol activation order in another embodiment, as shown in fig. 3, the network protocols are sorted according to a sorting policy that the activation priority of the IPV4 protocol is greater than the activation priority of the IPV6 protocol. The network protocols of the network card ports can be sequentially started according to an arrangement sequence shown by arrows in the figure from top to bottom.
In one embodiment, before determining the network protocol of the network card port to be ordered, the method further comprises: acquiring equipment information of current equipment; judging whether the current equipment is network card equipment or not according to the equipment information; if yes, entering a step of determining the network protocol of the network card port to be sequenced. The current device refers to a PCI device to be detected currently, which is accessed to the peripheral device interconnect slot.
In this embodiment, during a starting process of the BIOS, that is, during a power-on self-test process, it may be determined whether a PCI device accessing an interconnection slot of a peripheral device is a network card device, and after determining that the PCI device is the network card device, a step of determining a network protocol of a port of the PCI device is performed, specifically, which type (for example, IPV6 protocol and/or IPV4 protocol and other types) 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 the PCI device is not determined to be 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 network card port sequencing is improved, and the processing of unnecessary equipment is reduced.
In one embodiment, the method for controlling the network card ports to be sorted sequentially according to the network protocol starting sequence includes: acquiring a preset port starting sequence configured in advance; and controlling each network protocol of each network card port to be sequenced to be sequentially started according to a preset port starting sequence and a network protocol starting sequence.
In this embodiment, a preset port start sequence configured by a user is supported, and the user may configure a start sequence of each network card port in advance according to a service requirement and the like. Specifically, the server may preferentially read a preset port start sequence configured in advance by the user, and after the server successfully reads the preset port start sequence configured in advance by the user, the server may directly start each network card port in sequence according to the preset port start sequence, and sequentially start each network protocol of each network card port according to the network protocol start sequence. When the server fails to read the preset port start sequence, that is, there is no preset port start sequence preset by the user, or the preset port start sequence preset by the user is expired, etc., the server further may automatically sequence the start 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 its network protocol according to the automatically sequenced port start sequence.
Illustratively, the port starting sequence obtained by sequencing according to the unique identification information of the network card port is as follows: port 1 → port 2 → port 3, the network protocol ordering policy is: the IPV6 protocol is started prior to the IPV4 protocol, and then the start sequence of the network protocols of each network card port is: IPV6 protocol for port 1 → IPV4 protocol for port 1 → IPV6 protocol for port 2 → IPV4 protocol for port 2 → IPV6 protocol for port 3 → IPV4 protocol for port 3.
Illustratively, the port starting sequence obtained by sequencing according to the unique identification information of the network card port is as follows: port 1 → port 2 → port 3, the network protocol ordering policy is: the IPV4 protocol is started prior to the IPV6 protocol, and then the start sequence of the network protocols of each network card port is: IPV4 protocol for port 1 → IPV6 protocol for port 1 → IPV4 protocol for port 2 → IPV6 protocol for port 2 → IPV4 protocol for port 3 → IPV6 protocol for port 3.
Illustratively, the preset port starting sequence preset by the user and successfully read by the server is as follows: port 2 → port 3 → port 1, the network protocol ordering policy is: the IPV6 protocol is started prior to the IPV4 protocol, and then the start sequence of the network protocols of each network card port is: IPV6 protocol for port 2 → IPV4 protocol for port 2 → IPV6 protocol for port 3 → IPV4 protocol for port 3 → IPV6 protocol for port 1 → IPV4 protocol for port 1.
In one embodiment, a port of a network card device newly accessing an interconnection slot of a peripheral device is identified; and taking the port of the newly accessed network card equipment as the port of the network card to be sorted, and entering the step of determining the network protocol of the port of the network card to be sorted.
In this embodiment, when the server is restarted or a network card device is newly inserted, the server may be controlled to identify the network card port of the network card device newly accessing the interconnection slot of the peripheral device, and use the identified newly accessed network card port as the network card port to be sorted, and automatically rearrange the starting sequence of all the network card ports including the newly accessed network card port.
In the embodiment, even if the network card equipment is newly accessed in the starting process or the process of starting interruption and restarting is interrupted, automatic redistribution can be performed as long as a new network card port appears, manual intervention on the newly accessed equipment is not needed manually, and a manual fixed starting sequence is not needed, so that great help is provided for 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: and when detecting that the network card port accessed during the current starting is consistent with the network card port accessed during the last starting, sequentially starting each network protocol of each network card port according to the port starting sequence and the network protocol starting sequence during the last starting.
In this embodiment, before each start and sequencing, whether the network card devices accessing the interconnection slots of the peripheral devices and the network card ports of the network card devices change during the start may be preferentially detected, and if the network card devices and the network card ports thereof do not change such as increase, decrease, or replace during the start and the last start, the start sequence of the network protocols of the network card ports may not need to be reordered, and the network protocols of the network card ports may be sequentially started directly according to the start sequence of the network protocols during the last start.
In this embodiment, by determining the consistency of the network card devices and the network card ports thereof accessed during the current and last startup, the waste of computing resources caused by repeated sequencing operations can be reduced, and the startup efficiency is further improved.
More specifically, referring to fig. 4, fig. 4 is a flowchart illustrating a network protocol start sequence control method in an application example. In the following, a detailed description is further made on the network protocol start sequence control method related to the present application with reference to an application example, and the detailed description may specifically include the following contents:
step 1: during the starting process of the BIOS, namely the POST process, whether the PCI equipment is network card equipment or not can be judged firstly, and if not, the PCI equipment can be skipped to not be processed; if the network card device is a network card device, the network card device can be classified into a network card function class, and whether a port (network card port) of the network card device is an IPV6 protocol or an IPV4 protocol is determined through an information device path of the network card device.
Step 2: and acquiring a preset network protocol sequencing strategy. Wherein, if the preset network protocol ordering strategy 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: the IPV4 is started before, the IPV6 is started after, the IPV4 protocol of the network card port is ranked at a higher priority, and the IPV6 protocol is ranked at a lower priority.
And 3, step 3: for one network card port of one network card device, the network protocols can be sorted according to the network protocol sorting strategy in step 2, for a plurality of network cards and a plurality of network card ports, the identification information of each network card device and the network card port thereof can be acquired, and the network protocol sorting strategy is implemented according to the Segment of each network card port: bus: dev: fun numbers sort the port activation order.
And 4, step 4: after finishing sorting, determining whether the starting sequence of the network card ports is artificially adjusted, if so, keeping the artificially adjusted sequence and not reordering the network card ports, if so, storing the manually adjusted starting sequence into a network card function group, and according to Segment: bus: dev: fun number and network protocol ordering policy are reordered from small to large according to IPV6 protocol of portal 1 → IPV4 protocol of portal 1 → IPV6 protocol of portal 2 → IPV4 protocol of portal 2, IPV6 protocol of portal N of … …, and IPV4 protocol of portal N. Or, according to Segment: bus: dev: fun and a network protocol ordering strategy, and reordering is carried out from small to large according to an IPV4 protocol of a network port 1 → an IPV6 protocol of the network port 1 → an IPV4 protocol of the network port 2 → an IPV6 protocol of the network port 2 → an IPV4 protocol of a network port N → an IPV6 protocol of the network port N.
And 5: comparing with the network card function group when the network card is started last time, if newly accessed network card equipment or newly identified network card ports are found, sequencing the starting sequence again, updating the network card function group according to the latest starting sequence, and sequentially starting the network protocols of the network card ports according to the latest port starting sequence and network protocol starting sequence, if no newly accessed network card equipment or no new network card port is identified, starting the network card according to the last port and the network protocol starting sequence.
Step 6: after the server is restarted, step 1 to step 5 are executed again, and the above steps can be applied to the network environment of the HTTP protocol.
The network protocol starting sequence control method has strong reproducibility and expansibility, the network protocols of the network card ports are analyzed, the starting sequence of the IPV6 and/or the IPV4 of the network card ports is adjusted according to a preset network protocol sequencing strategy, 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 exist, the port starting sequence can be arranged first according to unique identification information, and then the network protocols of the network card ports are started in sequence according to the network protocol starting sequence of the network card ports. Even if a new network card port appears in the process of accessing a new network card device or restarting a server, the automatic reordering can be carried out, and meanwhile, the manually set port starting sequence can 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 a processor architecture, can be applied to server products with various architectures such as ARM, X86 and MIPS, and is beneficial to large-scale purchasing and deployment of the multi-network card server by 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, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1 and 4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided a network protocol start sequence control apparatus including: a protocol determination module 510, a protocol ordering module 520, and a protocol initiation module 530, wherein:
a protocol determining module 510, 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 sorted, where the network card port to be sorted is a port of a network card device accessing an interconnection slot of a peripheral device;
the protocol sorting module 520 is configured to acquire a preset network protocol sorting policy, and sort the network protocols of the network card ports to be sorted according to the network protocol sorting policy to obtain a network protocol starting sequence;
and the protocol starting module 530 is configured to control the network protocols of the network card ports to be sequenced to be started in sequence according to a network protocol starting sequence.
In one embodiment, the number of the network card ports to be sorted is multiple, the protocol sorting module 520 obtains unique identification information of each network card port to be sorted, and sorts each network card port to be sorted according to each unique identification information to obtain a port starting sequence; and controlling the network protocols of the network card ports to be sequenced to be sequentially started 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 or not according to the equipment information; if yes, entering a step of determining the network protocol of the network card port to be sequenced.
In one embodiment, there are a plurality of network card ports to be sorted, and the protocol sorting module 520 obtains a preset port starting sequence configured in advance; and controlling the network protocols of the network card ports to be sequenced to be sequentially started according to a preset port starting sequence and a network protocol starting sequence.
In one embodiment, the protocol sorting module 520 is further configured to identify a port of a network card device newly accessing to an interconnection slot of the peripheral device; and taking the port of the newly accessed network card equipment as the port of the network card to be sorted, and entering the step of determining the network protocol of the port of the network card to be sorted.
In an embodiment, the protocol starting module 530 is further configured to, when it is detected that the network card port accessed at the current start is consistent with the network card port accessed at the previous start, sequentially start each network protocol of each network card port according to the port starting sequence and the network protocol starting sequence at the previous start.
For specific limitations of the network protocol start sequence control device, reference may be made to the above limitations of the network protocol start sequence control method, which is not described herein again. The modules in the network protocol startup sequence control device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device comprises a processor, a memory and a network interface which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a network protocol initiation sequence control method.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain 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 following steps when executing the computer program: responding to a starting instruction of a basic input and 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 a network card device accessed to an interconnection slot of peripheral equipment; acquiring a preset network protocol sorting strategy, and sorting the network protocols of the network card ports to be sorted according to the network protocol sorting strategy to obtain a network protocol starting sequence; and controlling the network protocols of the network card ports 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 sorted to be sequentially started 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 the network protocols of the network card ports to be sequenced to be sequentially started 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 a network card equipment or not according to the equipment information; if yes, entering a step of determining the network protocol of the network card port to be sequenced.
In one embodiment, when the processor executes the computer program to control the network protocols of the network card ports to be sorted to be sequentially started according to the network protocol starting sequence, the following steps are specifically implemented: acquiring a preset port starting sequence configured in advance; and controlling each network protocol of each network card port to be sequenced to be sequentially started according to a preset port starting sequence and a network protocol starting sequence.
In one embodiment, the processor, when executing the computer program, further performs the steps of: identifying the port of the network card equipment newly accessed to the peripheral equipment interconnection slot; and taking the port of the newly accessed network card equipment as the port of the network card to be sorted, and entering the step of determining the network protocol of the port of the network card to be sorted.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and when detecting that the network card port accessed during the current starting is consistent with the network card port accessed during the last starting, sequentially starting each network protocol of each network card port according to the port starting sequence and the network protocol starting sequence during 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 and 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 a network card device accessed to an interconnection slot of peripheral equipment; acquiring a preset network protocol sorting strategy, and sorting the network protocols of the network card ports to be sorted according to the network protocol sorting strategy to obtain a network protocol starting sequence; and controlling the network protocol of the network card port 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 implement the control of the network protocol of the network card port to be sequenced to be sequentially started 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 the network protocols of the network card ports to be sequenced to be sequentially started 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 or not according to the equipment information; if yes, entering a step of determining the network protocol of the network card port to be sequenced.
In one embodiment, when the computer program is executed by the processor to implement the control of the network protocol of the network card port to be sequenced to be sequentially started according to the network protocol starting sequence, the following steps are specifically implemented: acquiring a preset port starting sequence configured in advance; and controlling each network protocol of each network card port to be sequenced to be sequentially started according to a preset port starting sequence and a network protocol starting sequence.
In one embodiment, the computer program when executed by the processor further performs the steps of: identifying the port of the network card equipment newly accessed to the peripheral equipment interconnection slot; and taking the port of the newly accessed network card equipment as the port of the network card to be sorted, and entering the step of determining the network protocol of the port of the network card to be sorted.
In one embodiment, the computer program when executed by the processor further performs the steps of: and when detecting that the network card port accessed during the current starting is consistent with the network card port accessed during the last starting, sequentially starting each network protocol of each network card port according to the port starting sequence and the network protocol starting sequence during the last starting.
It will be understood by those skilled in the art that all or part of the processes of the methods for implementing the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, the computer program can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile 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), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.

Claims (10)

1. A network protocol initiation sequence control method, the method comprising:
responding to a starting instruction of a basic input and 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 a network card device accessed to an interconnection slot of peripheral equipment;
acquiring a preset network protocol sorting strategy, and sorting the network protocols of the network card ports to be sorted according to the network protocol sorting strategy to obtain a network protocol starting sequence;
and controlling the network protocols of the network card ports to be sequenced to be sequentially started according to the network protocol starting sequence.
2. The method according to claim 1, wherein the number of the network card ports to be sorted is plural, and the controlling of the network protocol of the network card ports to be sorted is sequentially started according to the network protocol starting sequence, including:
acquiring unique identification information of each network card port to be sorted, and sorting each network card port to be sorted according to each unique identification information to obtain a port starting sequence;
and controlling the network protocols of the network card ports to be sequenced to be sequentially started according to the port starting sequence and the network protocol starting sequence.
3. The method according to claim 2, wherein the unique identification information is information for identifying a network card port, which is composed of a segment number, a bus number, a device number, and a function number.
4. The method according to 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 or not according to the equipment information;
and if so, entering the step of determining the network protocol of the network card port to be sequenced.
5. The method according to claim 1, wherein there are a plurality of network card ports to be sorted, and the controlling the network protocol of the network card ports to be sorted is sequentially started according to the network protocol starting sequence, including:
acquiring a preset port starting sequence configured in advance;
and controlling the network protocols of the network card ports to be sequenced to be sequentially started according to the preset port starting sequence and the network protocol starting sequence.
6. The method of claim 1, further comprising:
identifying a port of a network card device newly accessed to the peripheral device interconnection slot;
and taking the port of the newly accessed network card equipment as the port of the network card to be sequenced, and entering the step of determining the network protocol of the port of the network card to be sequenced.
7. The method of claim 1, further comprising:
and when detecting that the network card port accessed during the current starting is consistent with the network card port accessed during the last starting, sequentially starting each network protocol of each network card port according to the port starting sequence and the network protocol starting sequence during the last starting.
8. 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 sequenced, wherein the network card port to be sequenced is a port of network card equipment accessed to an interconnection slot of peripheral equipment;
the protocol sorting module is used for acquiring a preset network protocol sorting strategy and sorting the network protocols of the network card ports to be sorted according to the network protocol sorting strategy to obtain a network protocol starting sequence;
and 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.
9. 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 steps of the method of any of claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
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 true CN114598755A (en) 2022-06-07
CN114598755B 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080098098A1 (en) * 2006-10-20 2008-04-24 Canon Kabushiki Kaisha Information processing apparatus, information processing method, program, and storage medium
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080098098A1 (en) * 2006-10-20 2008-04-24 Canon Kabushiki Kaisha Information processing apparatus, information processing method, program, and storage medium
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
CN114598755B (en) 2023-08-11

Similar Documents

Publication Publication Date Title
CN110045991B (en) RAID configuration method and device of server, computer equipment and storage medium
CN111309372A (en) Timed task execution method and device, computer equipment and storage medium
CN112272218B (en) Cloud platform instance resource operation method and device, computer equipment and storage medium
CN111124508A (en) Method and device for adjusting PXE (PCI extensions for instrumentation) starting sequence of network card
CN110618819A (en) Method and device for automatically deploying WINPE system in batches and computer equipment
CN108255735B (en) Associated environment testing method, electronic device and computer readable storage medium
CN111538883A (en) Data crawling method, system and equipment
CN116700809B (en) Self-adaptive support method and device for server pre-starting function
CN111984520A (en) Buried point testing method, computer device and computer-readable storage medium
CN114598755A (en) Network protocol starting sequence control method, device, equipment and storage medium
CN112559352A (en) Interface test method, device, equipment and storage medium
CN111782447A (en) Batch test updating method and device based on SSH service and computer equipment
CN109634674B (en) Chip BOOT starting method and device, computer equipment and storage medium
CN116450165A (en) Method, system, terminal and storage medium for quickly building environment and deploying program
CN111310160A (en) WINDOWS automatic login deployment method, device, computer equipment and storage medium
CN112416446B (en) Linux network starting method and device based on Microsoft deployment system
CN111563038A (en) SDK test method, device, computer equipment and computer readable storage medium
CN114625584A (en) Test verification method and device for dynamic conversion of data transmission rate of solid state disk
CN110138890B (en) Method, device, computer equipment and storage medium for acquiring IP address
CN109343792B (en) Storage space configuration method and device, computer equipment and storage medium
CN113094054A (en) Automatic deployment method and device for multiple Linux systems and computer equipment
CN114116033B (en) Method and device for modifying server configuration
CN110059071B (en) Data comparison monitoring method, system, equipment and medium based on storage process
CN115016835A (en) Parameter optimization method, device, equipment and medium
CN114003452A (en) Device testing method, control device, testing device, and storage medium

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