CN114528030A - Method, system, equipment and storage medium for binding network protocol packet - Google Patents

Method, system, equipment and storage medium for binding network protocol packet Download PDF

Info

Publication number
CN114528030A
CN114528030A CN202210189186.4A CN202210189186A CN114528030A CN 114528030 A CN114528030 A CN 114528030A CN 202210189186 A CN202210189186 A CN 202210189186A CN 114528030 A CN114528030 A CN 114528030A
Authority
CN
China
Prior art keywords
network card
network
ipv6
ipv4
sequence
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.)
Withdrawn
Application number
CN202210189186.4A
Other languages
Chinese (zh)
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 CN202210189186.4A priority Critical patent/CN114528030A/en
Publication of CN114528030A publication Critical patent/CN114528030A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4416Network booting; Remote initial program loading [RIPL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • 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/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/167Adaptation for transition between two IP versions, e.g. between IPv4 and IPv6

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method, a system, equipment and a storage medium for binding network protocol packets, wherein the method comprises the following steps: responding to the PCI equipment as a network card, and acquiring a unique identification value of each network port; acquiring a network card port protocol, and performing priority ordering on the network card port protocol according to requirements; sequencing the identification values in each network card port protocol from small to large, and detecting whether the starting sequence of the network card is adjusted or not after sequencing is completed; and responding to the starting sequence of the network cards not being adjusted, updating the network card function group according to the sequence and starting the network card function group according to the latest network card sequence. In the PCI enumeration process, each network card device can sequentially adjust IPV6/IPV4 protocol for specific network port protocol and adjust the starting sequence of IPV6 and IPV4 network protocol groups according to the unique identification value.

Description

Method, system, equipment and storage medium for binding network protocol packet
Technical Field
The present invention relates to the field of network environment, and more particularly, to a method, system, device and storage medium for binding network protocol packets.
Background
Whether the data center or the server production workshop is adopted, a network Environment PXE (Preboot eXecution Environment) installation system is an essential important index, whether a production server link or a data center operation and maintenance link occupies a great position, the PXE Environment is divided into two Protocol modes of IPV6 (Internet Protocol Version 6, an abbreviation of Internet Protocol Version 6) and IPV4 (an abbreviation of Internet Protocol Version 4), IPv4 is a fourth revision in the Internet Protocol development process, IPv4 uses a 32-bit (4-byte) address, IPv6 is a next-generation IP Protocol designed by an Internet Engineering Task Force (IETF) to replace IPv4, the address length of IPv6 is 128 bits and is 4 times of the address length of IPv4, and therefore, the IPv4 point division format is applicable and not only expressed by hexadecimal, but also solves the problem of using the number of network resources of IPv6, and the obstacle that multiple access devices are connected to the internet is also solved, so that the protocols used by each client are inconsistent but the final purpose is to install an operating System, but some clients require IPV6 PXE to be in front, and some clients or production workshops only have IPV4 network environment, so that the 2 PXE modes need to be supported simultaneously in the design scheme of BIOS (Basic Input Output System), but some clients require IPV6 to be in front and IPV4 to be behind, and some clients require IPV4 to be in front and IPV6, which results in that the PXE environment cannot be fixed, if only a single IPV6 or IPV4 environment is supported, there is no problem in some data centers, there is a time requirement limit for installing the PXE environment, if the IPV6 protocol of each port is tried first, if the IPV4 protocol of the port is tried first, then the next network port is polled, therefore, the actual requirements of customers are not met, the IPV6 protocols of all network cards need to be combined and arranged at the head of a network protocol, the IPV4 protocols of all network cards need to be combined and arranged at the tail of the network protocol, and meanwhile, newly accessed network cards and manual adjustment sequences need to be considered, so that great challenges are created.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method, a system, a computer device, and a computer-readable storage medium for binding network protocol packets, where each network card device of the present invention can perform sequential adjustment on IPV6/IPV4 protocol for a specific network port protocol in a PCI (Peripheral Component Interconnect) enumeration process, and adjust the starting sequence of IPV6 and IPV4 network protocol groups according to a Segment: Bus: Dev: Fun number.
Based on the above object, an aspect of the embodiments of the present invention provides a method for binding network protocol packets, including the following steps: responding to that the PCI equipment is a network card, and acquiring a unique identification value of each network port; acquiring a network card port protocol, and performing priority ordering on the network card port protocol according to requirements; sequencing the identification values in each network card port protocol from small to large, and detecting whether the starting sequence of the network cards is adjusted or not after sequencing is finished; and responding to the starting sequence of the network cards not being adjusted, updating the network card function group according to the sequence and starting the network card function group according to the latest network card sequence.
In some embodiments, the prioritizing the network card port protocols as required includes: acquiring the requirements of the IPV6 and the IPV4, and judging whether the requirement of the IPV6 is higher than that of the IPV 4; in response to the demand of IPV6 being higher than IPV4, ranking IPV6 at a first priority and IPV4 at a second priority; and in response to the demand of the IPV6 not being higher than the IPV4, prioritizing the IPV4 at a first priority and prioritizing the IPV6 at a second priority.
In some embodiments, the sorting the identification values in each network card port protocol from small to large includes: the identification values are sorted in order of small to large in IPV6 and IPV4, respectively, and all identification values in IPV6 are ranked before or after all identification values in IPV4 by priority.
In some embodiments, the method further comprises: comparing the network card function group started this time with the network card function group started last time, and judging whether a newly accessed network card or a network card port identified again exists; in response to the newly accessed network card or the newly identified network card port, updating the network card function group according to the latest starting sequence and starting the network card function group according to the latest network card sequence; and responding to the network interface without the new access network card or the new identification network card and starting according to the last network card starting sequence.
In another aspect of the embodiments of the present invention, a system for binding network protocol packets is provided, including: the acquisition module is configured to respond to the PCI equipment as a network card and acquire the unique identification value of each network port; the first sequencing module is configured for acquiring a network card port protocol and performing priority sequencing on the network card port protocol according to requirements; the second sequencing module is configured to sequence the identification values in an order from small to large in each network card port protocol, and detect whether the starting sequence of the network card is adjusted or not after the sequencing is completed; and the starting module is configured to respond to the fact that the starting sequence of the network cards is not adjusted, update the network card function group according to the sequence and start the network card function group according to the latest network card sequence.
In some embodiments, the first ordering module is configured to: acquiring the requirements of the IPV6 and the IPV4, and judging whether the requirement of the IPV6 is higher than that of the IPV 4; in response to the demand of IPV6 being higher than IPV4, ranking IPV6 at a first priority and IPV4 at a second priority; and in response to the demand of the IPV6 not being higher than the IPV4, prioritizing the IPV4 at a first priority and prioritizing the IPV6 at a second priority.
In some embodiments, the second ordering module is configured to: the identification values are sorted in order of small to large in IPV6 and IPV4, respectively, and all identification values in IPV6 are ranked before or after all identification values in IPV4 by priority.
In some embodiments, the system further comprises a comparison module configured to: comparing the network card function group started this time with the network card function group started last time, and judging whether a newly accessed network card or a network card port identified again exists; in response to the newly accessed network card or the newly identified network card port, updating the network card function group according to the latest starting sequence and starting the network card function group according to the latest network card sequence; and responding to the network interface without the new access network card or the new identification network card and starting according to the last network card starting sequence.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method as above.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: each network card device can carry out IPV6/IPV4 protocol sequence adjustment on a specific network port protocol in the PCI enumeration process and adjust the starting sequence of IPV6 and IPV4 network protocol groups according to the Segment number of Bus number to Dev number to Fun number.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a schematic diagram of an embodiment of a method for binding network protocol packets provided by the present invention;
FIG. 2 is a schematic diagram of a system for network protocol packet binding according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a hardware structure of an embodiment of a network protocol packet-bound computer device provided by the present invention;
FIG. 4 is a schematic diagram of an embodiment of a computer storage medium for network protocol packet binding provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In a first aspect of the embodiments of the present invention, an embodiment of a method for binding network protocol packets is provided. Fig. 1 is a schematic diagram illustrating an embodiment of a method for binding network protocol packets provided by the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, responding to the PCI device as a network card, and acquiring a unique identification value of each network port;
s2, acquiring a network card port protocol, and performing priority ordering on the network card port protocol according to requirements;
s3, sorting the identification values in each network card port protocol from small to large, and detecting whether the starting sequence of the network card is adjusted or not after sorting is finished; and
and S4, responding to the starting sequence of the network cards not being adjusted, updating the network card function group according to the sequence and starting the network card function group according to the latest network card sequence.
The BIOS allocates resources to the PCI equipment in the starting process, judges whether the PCI equipment is a network card equipment or not in a network starting function part, the network card equipment comprises a PCI network card and an OCP network card, if not, skips over, if the network card is determined to be IPV4 protocol or IPV6 protocol of the network card through an information equipment path of the network card equipment, adjusts the sequence of IPV6 and IPV4 according to the requirement, for example, the sequence can be 1 IPV 6-IPV 4-1 IPV 4-2 IPV 6-2 IPV4, after adjusting the starting sequence of the IPV6, the Bus number occupies 23-16 bit, the Dev number occupies 15-8 bit and the Bun number occupies 7-0 bit, the sequence of the development Fun protocol occupies 31-24 bit wide, the Bus number occupies 23-16 bit, the development number occupies 15-8 bit wide and the Bus bit wide, the design requirements can be met by sequencing according to the sequence from small to large, if a user manually adjusts the starting sequence of the network cards through network card grouping, the functions are skipped, the manual adjustment scheme is kept, if newly inserted network cards are checked or newly identified network cards or network ports are restarted, manual setting is omitted, and the network cards are reordered according to the scheme, except for the method, the network cards can be sequenced from small to large according to the sequence of the numerical values of Bus: Dev: Fu, and then the grouping is carried out according to the network port network protocol IPV6 or IPV4, so that the invention can be also realized.
The specific process can be as follows:
and responding to the PCI equipment as a network card, and acquiring the unique identification value of each network port. The BIOS judges whether the PCI equipment is the network card equipment or not in the starting process, namely the Post process, if not, the PCI equipment is skipped to be not processed, if so, the PCI equipment is classified into the network card function class, the network port is confirmed to be an IPV6 protocol or an IPV4 protocol through the information equipment path of the network card equipment, and the unique identification value Segment of each network card is obtained.
Acquiring a network card port protocol, and carrying out priority ordering on the network card port protocol according to requirements.
In some embodiments, the prioritizing the network card port protocols as required includes: acquiring the requirements of the IPV6 and the IPV4, and judging whether the requirement of the IPV6 is higher than that of the IPV 4; in response to the demand of IPV6 being higher than IPV4, ranking IPV6 at a first priority and IPV4 at a second priority; and in response to the demand of the IPV6 not being higher than the IPV4, prioritizing the IPV4 at a first priority and prioritizing the IPV6 at a second priority. If the customer request is that IPV6 is before IPV4 is after, then the IPV6 protocol for that portal is ranked high priority and IPV4 is ranked low priority; if the customer request is that IPV4 is before IPV6 is after, then the IPV4 protocol for that portal is ranked high priority and the IPV6 is ranked low priority.
And sequencing the identification values in each network card port protocol from small to large, and detecting whether the starting sequence of the network cards is adjusted or not after sequencing is finished. After the network protocols of all the network cards IPV6 and IPV4 are sequentially adjusted, sorting is carried out according to the sequence of values of Segment: Bus: Dev: Fun of each network port from small to large, namely, grouping sorting of IPV6 or IPV4 is carried out, such as network port 1 IPV6- > network port 2 IPV6- > network port 1 IPV4- > network port 2 IPV 4.
In some embodiments, the sorting the identification values in each network card port protocol from small to large includes: the identification values are sorted in order of small to large in IPV6 and IPV4, respectively, and all identification values in IPV6 are ranked before or after all identification values in IPV4 by priority.
And in response to the starting sequence of the network cards not being adjusted, updating the network card function group according to the sequence and starting the network card function group according to the latest network card sequence.
After the sorting is finished, whether the starting sequence of the network card is artificially adjusted or not is confirmed, if so, the artificial adjustment sequence is kept, the network card is not reordered, if not, the network card is stored in a network card function group according to the newly adjusted starting sequence, and the network card is reordered from small to large according to the Segment, namely Bus, Dev, No. Fun, and a network port 1 IPV6- > a network port 2 IPV6- > a network port 1 IPV4- > a network port 2 IPV 4; or according to the Segment: Bus: Dev: Fun number and port 1 IPV4- > port 2 IPV4- > port 1 IPV6- > port 2 IPV6, and the reordering is carried out from small to large.
In some embodiments, the method further comprises: comparing the network card function group started this time with the network card function group started last time, and judging whether a newly accessed network card or a network card port identified again exists; in response to the newly accessed network card or the newly identified network card port, updating the network card function group according to the latest starting sequence and starting the network card function group according to the latest network card sequence; and responding to the network interface without the new access network card or the new identification network card and starting according to the last network card starting sequence. And comparing the network card function group with the network card function group started last time, if newly accessed network cards or network card ports identified again are found, updating the network card function group according to the latest starting sequence and starting the network card according to the latest network card sequence, and if no newly accessed network cards or network card ports identified newly exist, starting the network card according to the last network card starting sequence.
It should be particularly noted that, the steps in the embodiments of the method for binding network protocol packets described above can be mutually intersected, replaced, added, or deleted, and therefore, these methods for binding network protocol packets, which are transformed by reasonable permutation and combination, should also belong to the scope of the present invention, and should not limit the scope of the present invention to the embodiments.
In view of the above object, a second aspect of the embodiments of the present invention provides a system for binding network protocol packets. As shown in fig. 2, the system 200 includes the following modules: the acquisition module is configured to respond to the PCI equipment as a network card and acquire the unique identification value of each network port; the first sequencing module is configured for acquiring a network card port protocol and performing priority sequencing on the network card port protocol according to requirements; the second sequencing module is configured to sequence the identification values in an order from small to large in each network card port protocol, and detect whether the starting sequence of the network card is adjusted or not after the sequencing is completed; and the starting module is configured to respond to the fact that the starting sequence of the network cards is not adjusted, update the network card function group according to the sequence and start the network card function group according to the latest network card sequence.
In some embodiments, the first ordering module is configured to: acquiring the requirements of the IPV6 and the IPV4, and judging whether the requirement of the IPV6 is higher than that of the IPV 4; in response to the demand of IPV6 being higher than IPV4, ranking IPV6 at a first priority and IPV4 at a second priority; and in response to the demand of the IPV6 not being higher than the IPV4, prioritizing the IPV4 at a first priority and prioritizing the IPV6 at a second priority.
In some embodiments, the second ordering module is configured to: the identification values are sorted in order of small to large in IPV6 and IPV4, respectively, and all identification values in IPV6 are ranked before or after all identification values in IPV4 by priority.
In some embodiments, the system further comprises a comparison module configured to: comparing the network card function group started this time with the network card function group started last time, and judging whether a newly accessed network card or a network card port identified again exists; in response to the newly accessed network card or the newly identified network card port, updating the network card function group according to the latest starting sequence and starting the network card function group according to the latest network card sequence; and responding to the network interface without the new access network card or the new identification network card and starting according to the last network card starting sequence.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, responding to the PCI device as a network card, and acquiring a unique identification value of each network port; s2, acquiring a network card port protocol, and performing priority ordering on the network card port protocol according to requirements; s3, sorting the identification values in each network card port protocol from small to large, and detecting whether the starting sequence of the network card is adjusted or not after the sorting is finished; and S4, in response to the starting sequence of the network cards not being adjusted, updating the network card function group according to the sequence and starting the network card function group in the latest network card sequence.
In some embodiments, the prioritizing the network card port protocols as required includes: acquiring the requirements of the IPV6 and the IPV4, and judging whether the requirement of the IPV6 is higher than that of the IPV 4; in response to the demand of IPV6 being higher than IPV4, ranking IPV6 at a first priority and IPV4 at a second priority; and in response to the demand of IPV6 not being higher than IPV4, ranking IPV4 at a first priority and ranking IPV6 at a second priority.
In some embodiments, the sorting the identification values in each network card port protocol from small to large includes: the identification values are sorted in order of small to large in IPV6 and IPV4, respectively, and all identification values in IPV6 are ranked before or after all identification values in IPV4 by priority.
In some embodiments, the steps further comprise: comparing the network card function group started this time with the network card function group started last time, and judging whether a newly accessed network card or a network card port identified again exists; in response to the newly accessed network card or the newly identified network card port, updating the network card function group according to the latest starting sequence and starting the network card function group according to the latest network card sequence; and responding to the network interface without the new access network card or the new identification network card and starting according to the last network card starting sequence.
Fig. 3 is a schematic hardware structural diagram of an embodiment of the computer device for binding the network protocol packets provided by the present invention.
Taking the apparatus shown in fig. 3 as an example, the apparatus includes a processor 301 and a memory 302.
The processor 301 and the memory 302 may be connected by a bus or other means, such as the bus connection in fig. 3.
The memory 302 is a non-volatile computer-readable storage medium and can be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for binding network protocol packets in the embodiment of the present application. The processor 301 executes various functional applications of the server and data processing, i.e., a method of implementing network protocol packet binding, by executing nonvolatile software programs, instructions, and modules stored in the memory 302.
The memory 302 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the method of network protocol packet binding, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 302 optionally includes memory located remotely from processor 301, which may be connected to a local module via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Computer instructions 303 corresponding to one or more methods of network protocol packet binding are stored in the memory 302 and when executed by the processor 301 perform the method of network protocol packet binding in any of the method embodiments described above.
Any embodiment of a computer device implementing the method for network protocol packet binding described above may achieve the same or similar effects as any of the preceding method embodiments corresponding thereto.
The present invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, performs a method of network protocol packet binding.
Fig. 4 is a schematic diagram of an embodiment of a computer storage medium for binding the network protocol packets according to the present invention. Taking the computer storage medium as shown in fig. 4 as an example, the computer readable storage medium 401 stores a computer program 402 which, when executed by a processor, performs the method as described above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes of the methods of the above embodiments can be implemented by a computer program to instruct related hardware, and the program of the method for binding network protocol packets can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods as described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for network protocol packet binding, comprising the steps of:
responding to that the PCI equipment is a network card, and acquiring a unique identification value of each network port;
acquiring a network card port protocol, and performing priority ordering on the network card port protocol according to requirements;
sequencing the identification values in each network card port protocol from small to large, and detecting whether the starting sequence of the network cards is adjusted or not after sequencing is finished; and
and in response to the starting sequence of the network cards not being adjusted, updating the network card function group according to the sequence and starting the network card function group according to the latest network card sequence.
2. The method of claim 1, wherein the prioritizing the network card port protocols as required comprises:
acquiring the requirements of the IPV6 and the IPV4, and judging whether the requirement of the IPV6 is higher than that of the IPV 4;
in response to the demand of IPV6 being higher than IPV4, ranking IPV6 at a first priority and IPV4 at a second priority; and
in response to the demand of IPV6 not being higher than IPV4, IPV4 is ranked at a first priority and IPV6 is ranked at a second priority.
3. The method according to claim 2, wherein said sorting the identification values in each network card port protocol in descending order comprises:
the identification values are sorted in order of small to large in IPV6 and IPV4, respectively, and all identification values in IPV6 are ranked before or after all identification values in IPV4 by priority.
4. The method of claim 1, further comprising:
comparing the network card function group started this time with the network card function group started last time, and judging whether a newly accessed network card or a network card port identified again exists;
in response to the newly accessed network card or the newly identified network card port, updating the network card function group according to the latest starting sequence and starting the network card function group according to the latest network card sequence; and
and responding to the network interface without the new access network card or the new identification network card, and starting according to the last network card starting sequence.
5. A system for network protocol packet binding, comprising:
the acquisition module is configured to respond to the PCI equipment as a network card and acquire the unique identification value of each network port;
the first sequencing module is configured for acquiring a network card port protocol and performing priority sequencing on the network card port protocol according to requirements;
the second sequencing module is configured to sequence the identification values in an order from small to large in each network card port protocol, and detect whether the starting sequence of the network card is adjusted or not after the sequencing is completed; and
and the starting module is configured to respond to the fact that the starting sequence of the network cards is not adjusted, update the network card function group according to the sequence and start the network cards in the latest network card sequence.
6. The system of claim 5, wherein the first ordering module is configured to:
acquiring the requirements of the IPV6 and the IPV4, and judging whether the requirement of the IPV6 is higher than that of the IPV 4;
in response to the demand of IPV6 being higher than IPV4, ranking IPV6 at a first priority and IPV4 at a second priority; and
in response to the demand of IPV6 not being higher than IPV4, IPV4 is ranked at a first priority and IPV6 is ranked at a second priority.
7. The system of claim 6, wherein the second ordering module is configured to:
the identification values are sorted in order of small to large in IPV6 and IPV4, respectively, and all identification values in IPV6 are ranked before or after all identification values in IPV4 by priority.
8. The system of claim 5, further comprising a comparison module configured to:
comparing the network card function group started this time with the network card function group started last time, and judging whether a newly accessed network card or a network card port identified again exists;
in response to the newly accessed network card or the newly identified network card port, updating the network card function group according to the latest starting sequence and starting the network card function group according to the latest network card sequence; and
and responding to the network interface without the new access network card or the new identification network card, and starting according to the last network card starting sequence.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 4.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN202210189186.4A 2022-03-01 2022-03-01 Method, system, equipment and storage medium for binding network protocol packet Withdrawn CN114528030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210189186.4A CN114528030A (en) 2022-03-01 2022-03-01 Method, system, equipment and storage medium for binding network protocol packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210189186.4A CN114528030A (en) 2022-03-01 2022-03-01 Method, system, equipment and storage medium for binding network protocol packet

Publications (1)

Publication Number Publication Date
CN114528030A true CN114528030A (en) 2022-05-24

Family

ID=81625542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210189186.4A Withdrawn CN114528030A (en) 2022-03-01 2022-03-01 Method, system, equipment and storage medium for binding network protocol packet

Country Status (1)

Country Link
CN (1) CN114528030A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117112044A (en) * 2023-10-23 2023-11-24 腾讯科技(深圳)有限公司 Instruction processing method, device, equipment and medium based on network card

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117112044A (en) * 2023-10-23 2023-11-24 腾讯科技(深圳)有限公司 Instruction processing method, device, equipment and medium based on network card
CN117112044B (en) * 2023-10-23 2024-02-06 腾讯科技(深圳)有限公司 Instruction processing method, device, equipment and medium based on network card

Similar Documents

Publication Publication Date Title
US7633855B2 (en) System and method for resolving address conflicts in a network
WO2009033248A1 (en) A method for efficient thread usage for hierarchically structured tasks
CN103634386A (en) Method and device for downloading application by client end application program
JP2007507915A (en) Apparatus and method for classifier identification
CN110351397B (en) Method and device for matching IP network segments
CN106210155A (en) The method and apparatus connecting application server
CN114528030A (en) Method, system, equipment and storage medium for binding network protocol packet
CN113419815A (en) Method, system, equipment and medium for pre-starting operation environment installation
CN111752582A (en) Software updating method and device in local area network and electronic equipment
CN112580730A (en) Terminal type identification method and device
CN104077152A (en) Batch upgrading method and batch upgrading device for embedded system
CN107659516B (en) Function control method and device for broadband remote access server BRAS
CN106789695B (en) Message processing method and device
CN111726367A (en) User equipment CPE access binding method, device, system and equipment
CN110769462B (en) Network access control method and device
CN110661655B (en) Cluster deployment method and system, electronic device and storage medium
CN114237928A (en) Inter-container communication method and device, electronic equipment and computer-readable storage medium
CN109194566B (en) Method for retransmitting information, storage medium and terminal equipment
US20200162317A1 (en) Reconfiguring network settings for operating configuration installation
CN106897312A (en) application program searching method and device
CN112187568B (en) Message transmission method, device and system
CN112448839A (en) Network card configuration method and device and computer storage medium
CN115292045B (en) Jenkins multi-node multiplexing method, system and electronic equipment
CN116886463B (en) Cascade communication method, device, equipment and medium
CN108132990B (en) Method and device for replacing APP built-in picture 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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20220524