CN107968728B - Method and device for determining rate - Google Patents

Method and device for determining rate Download PDF

Info

Publication number
CN107968728B
CN107968728B CN201711352134.XA CN201711352134A CN107968728B CN 107968728 B CN107968728 B CN 107968728B CN 201711352134 A CN201711352134 A CN 201711352134A CN 107968728 B CN107968728 B CN 107968728B
Authority
CN
China
Prior art keywords
cage
network card
card module
network
rate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711352134.XA
Other languages
Chinese (zh)
Other versions
CN107968728A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201711352134.XA priority Critical patent/CN107968728B/en
Publication of CN107968728A publication Critical patent/CN107968728A/en
Application granted granted Critical
Publication of CN107968728B publication Critical patent/CN107968728B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • H04L41/0809Plug-and-play configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events

Abstract

The embodiment of the invention discloses a method for determining a rate, which comprises the following steps: acquiring attributes of each cage in at least one network card cage connected with a network card module, wherein the attributes of the cages are used for representing network transmission rates supported by the cages; determining the attribute of the network card module according to the attribute of each cage, wherein the attribute of the network card module is used for representing the network transmission rate supported by the network card module; each cage is connected with the network card module by being inserted into a connecting piece arranged on the network card module. A rate determining apparatus is also disclosed.

Description

Method and device for determining rate
Technical Field
The invention relates to a speed determination technology of a network card module, in particular to a speed determination method and equipment.
Background
From the main constitution, the current network card module comprises a network card chip and a network card cage. Wherein, the cage carries the information of the network transmission rate supported by the network card module; the network card chip is equivalent to a core device of the network card and mainly plays a role in identifying the transmission rate supported by the network card module. Therefore, when the network card module is upgraded or the network speed changes due to the fact that the cage part is fixedly arranged on the network card module, the original network card module needs to be eliminated as a whole, and a new network card module is bought again. Thus, the overhead is increased invisibly. Meanwhile, due to the adoption of a fixed setting mode, the existing network card module is usually only provided with one type of cage in consideration of space occupation, namely only one speed is supported, and the requirement of multiple speeds cannot be met.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a method and an apparatus for determining a rate, which can at least solve the problems that a multi-rate requirement cannot be met and additional overhead is generated.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a method for determining a rate, which is applied to a network card module and comprises the following steps:
acquiring attributes of each cage in at least one network card cage connected with a network card module, wherein the attributes of the cages are used for representing network transmission rates supported by the cages;
determining the attribute of the network card module according to the attribute of each cage, wherein the attribute of the network card module is used for representing the network transmission rate supported by the network card module;
each cage is connected with the network card module by being inserted into a connecting piece arranged on the network card module.
In the above solution, when two or more cages are inserted into the connecting member, the method includes:
acquiring identification information of each of the two or more cages;
determining the network transmission rate supported by each cage based on the identification information of each cage;
determining a target transmission rate from the network transmission rates supported by the cage;
and determining that the target transmission rate is the network transmission rate supported by the network card module.
In the above scheme, when there is one cage inserted into the connecting member, the method further includes:
acquiring identification information in the cage;
determining a target transmission rate based on the identification information;
and determining that the target transmission rate is the network transmission rate supported by the network card module.
In the above scheme, the method further comprises:
determining the maximum rate in the network transmission rates supported by the cage as the target transmission rate;
or determining any rate of the network transmission rates supported by the cage, which is less than or equal to the bearing rate of the network card module, as the target transmission rate;
or, determining the greater rate of the network transmission rates supported by the cage, which is less than or equal to the bearing rate of the network card module, as the target transmission rate.
In the above scheme, the target transmission rate is switched among the network transmission rates supported by the respective pages.
An embodiment of the present invention provides a device for determining a rate, where the device includes:
a memory for storing executable instructions;
a processor configured to, when executing the executable instructions, perform the following:
acquiring attributes of each cage in at least one network card cage connected with a network card module, wherein the attributes of the cages are used for representing network transmission rates supported by the cages;
determining the attribute of the network card module according to the attribute of each cage, wherein the attribute of the network card module is used for representing the network transmission rate supported by the network card module;
each cage is connected with the network card module by being inserted into a connecting piece arranged on the network card module.
In the above solution, the processor is configured to, when executing the executable instruction, further implement the following operations:
when the number of the cage inserted on the connecting piece is two or more, the method comprises the following steps:
acquiring identification information of each of the two or more cages;
determining the network transmission rate supported by each cage based on the identification information of each cage;
determining a target transmission rate from the network transmission rates supported by the cage;
and determining that the target transmission rate is the network transmission rate supported by the network card module.
In the above solution, the processor 701 is configured to, when executing the executable instruction, further implement the following operations:
when there is one cage inserted on the connecting member, the method further includes:
acquiring identification information in the cage;
determining a target transmission rate based on the identification information;
and determining that the target transmission rate is the network transmission rate supported by the network card module.
In the above solution, the processor 701 is configured to, when executing the executable instruction, further implement the following operations:
determining the maximum rate in the network transmission rates supported by the cage as the target transmission rate;
or determining any rate of the network transmission rates supported by the cage, which is less than or equal to the bearing rate of the network card module, as the target transmission rate;
or, determining the greater rate of the network transmission rates supported by the cage, which is less than or equal to the bearing rate of the network card module, as the target transmission rate.
In the above solution, the processor 701 is configured to, when executing the executable instruction, further implement the following operations:
and switching the target transmission rate among the network transmission rates supported by the cage.
The method and the device for determining the rate provided by the embodiment of the invention comprise the following steps: acquiring attributes of each cage in at least one network card cage connected with a network card module, wherein the attributes of the cages are used for representing network transmission rates supported by the cages; determining the attribute of the network card module according to the attribute of each cage, wherein the attribute of the network card module is used for representing the network transmission rate supported by the network card module; each cage is connected with the network card module by being inserted into a connecting piece arranged on the network card module.
Different from the cage in the prior art which is fixedly arranged in the network card module, the cage in the embodiment is a pluggable cage. When the network is upgraded or the network speed is changed, the whole network card module does not need to be replaced, and only the upgraded network speed matched cage needs to be inserted, so that the expense can be effectively reduced. In addition, the plug-in design reduces the space occupation of the network card module and can meet the requirement of multi-speed.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of a first embodiment of a method for determining a rate according to the present invention;
FIG. 2 is a flowchart illustrating an implementation of a second embodiment of a method for determining a rate according to the present invention;
FIG. 3 is a flowchart illustrating an implementation of a third embodiment of a method for determining a rate according to the present invention;
FIG. 4 is a schematic diagram of a PCB of a network card module according to the present invention;
fig. 5 is a schematic diagram of a hardware structure of an embodiment of the apparatus for determining a rate provided by the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The network card module related to the following embodiments of the present invention may be disposed in any electronic device capable of performing communication, where the electronic device may be a mobile phone, a personal digital assistant PAD, a smart watch, smart glasses, a personal computer, or the like. The electronic device may also be any type of server, such as an application server, a router, a broadband access server, etc. Of course, any other conceivable communication device may be used, and is not particularly limited.
The invention provides a first embodiment of a method for determining a rate, which is applied to a network card module. As shown in fig. 1, the method includes:
step 101: acquiring attributes of each cage in at least one network card cage connected with a network card module, wherein the attributes of the cages are used for representing network transmission rates supported by the cages;
here, each cage has an identification ID, and the ID of each cage represents the network transmission probability supported by the cage.
Step 102: determining the attribute of the network card module according to the attribute of each cage, wherein the attribute of the network card module is used for representing the network transmission rate supported by the network card module; each cage is connected with the network card module by being inserted into a connecting piece arranged on the network card module.
Here, each cage carries information of a supportable network transmission rate. Different from the case fixedly arranged in the network card module in the prior art, the case provided in this embodiment is connected to the network card module by being inserted into the connecting member, and disconnected from the network card module by being pulled out, that is, the case in this embodiment is a pluggable case. When the network is upgraded or the network speed is changed, the whole network card module does not need to be replaced, and only the upgraded network speed matched cage needs to be inserted, so that the expense can be effectively reduced. In addition, the plug-in design reduces the space occupation of the network card module. Meanwhile, the connecting piece of the network card module can allow more than one pluggable cage to be plugged, so that the requirement of multi-speed can be met.
The invention provides a second embodiment of a method for determining a rate, which is applied to a network card module. As shown in fig. 2, the method includes:
step 201: acquiring attributes of each cage in at least one network card cage connected with a network card module, wherein the attributes of the cages are used for representing network transmission rates supported by the cages;
here, each cage has an identification ID, and the ID of each cage represents the network transmission probability supported by the cage.
Step 202: when one cage inserted into the connecting piece is used, acquiring identification information in the cage;
step 203: determining a target transmission rate based on the identification information;
the identification information is the ID of the cage. The ID may be hardware information, which is programmed into the cage when the cage is shipped, or software information, which is set by a program password.
In this embodiment, in view of information security, the identification information is preferably ID information of hardware, and each cage has a unique hardware ID, so that the problem of identification error caused by software setting can be avoided. Meanwhile, hardware information is not easy to be tampered, and validity and safety of the identification can be guaranteed.
A hardware ID represents a network transmission rate, and the identifier may be a value of a supported network transmission rate value itself or a value having a certain correspondence or mapping relationship with the supported transmission rate. For example, ID is hexadecimal "0001", the network transmission rate supported by the corresponding cage is 200Gb/s, ID is "0003", the network transmission rate supported by the corresponding cage is 100Gb/s, and so on. The specific implementation form of the ID identification in this scheme is not specifically limited, as long as one network transmission rate can be identified.
In the step, pin signals of each cage are obtained, and each cage is connected with the connecting piece through the pin of each cage; and determining the identification information of each cage based on the pin signal of each cage. And connecting pins of the cage with the connecting piece, reading pin signals, and analyzing the ID information from the read pin signals.
Step 204: and determining that the target transmission rate is the network transmission rate supported by the network card module, wherein the cage is connected with the network card module through a connecting piece inserted into the network card module.
In steps 202-204, when the number of the cage inserted into the connector is one, that is, only one cage is inserted into the network card module, the ID (hardware information) of the inserted cage is read, the supported network transmission speed (target transmission rate) is determined by the read ID, and the network card module of the cage with the ID performs network transmission by using the determined network transmission rate.
In practical use, the user only needs to insert the cage supporting the transmission rate into the network card module according to which transmission rate is required, so that the feasibility is strong, and the implementation is simple and convenient.
Different from the case fixedly arranged in the network card module in the prior art, the case provided in this embodiment is connected to the network card module by being inserted into the connecting member, and disconnected from the network card module by being pulled out, that is, the case in this embodiment is a pluggable case. When the network is upgraded or the network speed is changed, the whole network card module does not need to be replaced, and only the upgraded network speed matched cage needs to be inserted, so that the expense can be effectively reduced. In addition, the plug-in design reduces the space occupation of the network card module. The pluggable cage can meet the usability requirements of users and greatly improve the user experience.
The invention provides a third embodiment of a method for determining a rate, which is applied to a network card module. As shown in fig. 3, the method includes:
step 301: acquiring attributes of each cage in at least one network card cage connected with a network card module, wherein the attributes of the cages are used for representing network transmission rates supported by the cages;
here, each cage has an identification ID, and the ID of each cage represents the network transmission probability supported by the cage.
Step 302: when the number of the cages inserted into the connecting piece is two or more, acquiring identification information of each of the two or more cages;
step 303: determining the network transmission rate supported by each cage based on the identification information of each cage;
the identification information is the ID of the cage. The ID may be hardware information, which is programmed into the cage when the cage is shipped, or software information, which is set by a program password.
In this embodiment, in view of information security, the identification information is preferably ID information of hardware, and each cage has a unique hardware ID, so that the problem of identification error caused by software setting can be avoided. Meanwhile, hardware information is not easy to be tampered, and validity and safety of the identification can be guaranteed.
A hardware ID represents a network transmission rate, and the identifier may be a value of a supported network transmission rate value itself or a value having a certain correspondence or mapping relationship with the supported transmission rate. For example, ID is hexadecimal "0001", the network transmission rate supported by the corresponding cage is 200Gb/s, ID is "0003", the network transmission rate supported by the corresponding cage is 100Gb/s, and so on. The specific implementation form of the ID identification in this scheme is not specifically limited, as long as one network transmission rate can be identified.
In the step, pin signals of each cage are obtained, and each cage is connected with the connecting piece through the pin of each cage; and determining the identification information of each cage based on the pin signal of each cage. And connecting pins of the cage with the connecting piece, reading pin signals, and analyzing the ID information from the read pin signals.
Step 304: determining a target transmission rate from the network transmission rates supported by the cage;
in step 304, the target transmission rate is determined by at least one of:
determining the maximum rate in the network transmission rates supported by the cage as the target transmission rate;
or determining any rate of the network transmission rates supported by the cage, which is less than or equal to the bearing rate of the network card module, as the target transmission rate;
or, determining the greater rate of the network transmission rates supported by the cage, which is less than or equal to the bearing rate of the network card module, as the target transmission rate.
That is, in this embodiment, the maximum rate may be selected from the network transmission rates supported by the cage, and the maximum rate is used as the target transmission rate; or selecting the speed less than or equal to the bearing speed of the network card module from the network transmission speed supported by each cage, and selecting one speed from the selected speed as the target transmission speed; a maximum rate may also be selected from the picked rates as the target transmission rate. If the selection mode with the content as the target transmission rate is adopted, which selection mode is adopted depends on the specific network transmission environment.
In addition, the target transmission rate is switched among the network transmission rates supported by the various ages, further, the attribute of the data to be transmitted is utilized, the attribute is used for representing the types of the data to be transmitted, such as local data and non-local data, and the target transmission rate is switched among the network transmission rates supported by the various ages. For example, when the number of the inserted cage is 2 (cage 1 and cage 2), the cage1 supports rate 1, the cage2 supports rate 2, and rate 2 is greater than rate 1, when the local computer performs data transmission, the type of the data to be transmitted is determined, and if the data to be transmitted is data to be transmitted to the local computer, a smaller rate such as rate 1 is used for transmission; if the data to be transmitted is to be transmitted to non-local data, then the transmission is performed using a larger rate, such as rate 2. Thus, transmission resources are effectively utilized, and resource utilization is maximized.
Step 305: and determining that the target transmission rate is the network transmission rate supported by the network card module, wherein each cage is connected with the network card module by inserting a connecting piece arranged on the network card module.
In step 305, when the number of cage inserted into the network card module is two or more, the network card module performs network transmission using the target transmission rate selected in step 304.
In this embodiment, an appropriate transmission rate is selected from the transmission rates supported by at least two cages, so that the network card module performs network transmission using the appropriate transmission rate. The flexible switching of transmission rates among a plurality of transmission rates can also be performed based on the type of data to be transmitted. Therefore, the requirement of multiple rates can be met by plugging and unplugging more than one pluggable cage. When the network is upgraded or the network speed is changed, the whole network card module does not need to be replaced, and only a cage matched with the upgraded network speed needs to be inserted, so that the expense of the cost can be effectively reduced. In addition, the plug-in design reduces the space occupation of the network card module.
The present solution will be described in detail below with reference to a Printed Circuit Board (PCB) model of the network card module shown in fig. 4.
Fig. 4 is a PCB model of a network card model, which includes a connector 401, a network card chip 402 and a gold finger 403. The connecting piece 401 is used for connecting the pluggable cage with the pluggable cage to realize the pluggable cage. The network card chip 402 is used to identify the network transmission rate supported by the cage inserted into the connector 401. The golden finger is used for connecting the PCB model with other models such as a mainboard in a computer.
Specifically, for example, a connector can be inserted into three pages, where the ID of page 1 is ID1, which supports rate 1, the ID of page 2 is ID2, which supports rate 2, and the ID of page 3 is ID3, which supports rate 3 (rate 1 is less than rate 2 is less than rate 3).
When each cage is inserted into the connecting part 401, certain pins are connected with the connecting part 401, the network card chip 402 reads pin signals connected to the connecting part 401 in each cage, and the pin signals determine the ID of each cage, for example, ID1 represents the transmission rate supporting 200Gb/s, ID2 represents the transmission rate supporting 100Gb/s, and ID3 represents the transmission rate supporting 50 Gb/s. Among the rates represented by the three inserted pages, the network card chip 402 may select the maximum rate as the transmission rate of the network card module, may select a rate less than or equal to the carrying rate of the network card module, and then select any one of the rates as the target transmission rate, or may select a maximum rate from the rates less than or equal to the carrying rate of the network card module as the target transmission rate. The network card module carries out network transmission at the target transmission rate.
In addition, the switching use can be carried out in each transmission rate according to the type of the data to be transmitted of the physical layer. If the data to be transmitted is data transmitted to the local (such as a mobile phone terminal side), transmitting by using a smaller rate such as the rate 1; if the data to be transmitted is transmitted to non-local data (such as a server side), transmitting by using a larger speed, such as a speed 2; if the data to be transmitted needs to be transmitted locally and also needs to be transmitted non-locally, then the transmission is done using the maximum rate, e.g., rate 3. Thus, transmission resources are effectively utilized, and resource utilization is maximized.
In the above solution, since the PCB of the network card module is located at the physical layer, this process can be regarded as a process of determining the transmission rate of the physical layer.
Therefore, in the embodiment of the invention, the network card module supports pluggable cage and supports plugging of more than two cages, when the network is upgraded or the network speed is changed, the whole network card module does not need to be replaced, and only the cage which can be matched with the upgraded network speed needs to be inserted, so that the expense of the cost can be effectively reduced. In addition, the plug-in design reduces the space occupation of the network card module. In addition, the network card module supports cage with various transmission rates, and can meet the requirement of multi-rate. Under the condition that the network card module PCB is damaged, only the network card module PCB needs to be replaced, and the cage does not need to be replaced, so that the cost is greatly saved.
Fig. 5 is a schematic diagram of a hardware structure of a device for determining a rate 700 according to an embodiment of the present invention, which may be a mobile phone, a computer, a digital broadcast terminal, an information transceiver device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, or the like. The rate determination apparatus 700 shown in fig. 5 includes: at least one processor 701, a memory 702, at least one network interface 704, and a user interface 703. The various components in the rate determining device 700 are coupled together by a bus system 705. It is understood that the bus system 705 is used to enable communications among the components. The bus system 705 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various busses are labeled in figure 5 as the bus system 705.
The user interface 703 may include, among other things, a display, a keyboard, a mouse, a trackball, a click wheel, a key, a button, a touch pad, or a touch screen.
It will be appreciated that the memory 702 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 702 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
Memory 702 in embodiments of the present invention is used to store various types of data to support the operation of device 700 in determining a rate. Examples of such data include: any computer programs for operating on the device 700 for determining rates, such as an operating system 7021 and application programs 7022; contact data; telephone book data; a message; a picture; video, etc. The operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 7022 may include various applications such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. Programs that implement methods in accordance with embodiments of the present invention can be included within application program 7022.
The method disclosed in the above embodiments of the present invention may be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 701. The Processor 701 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 701 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 702, and the processor 701 may read the information in the memory 702 and perform the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the rate determining Device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the aforementioned methods.
Embodiments of the present invention further provide a computer storage medium, such as the aforementioned memory 702, storing executable instructions, such as a computer program, for implementing the method for determining a rate according to embodiments of the present invention, for example, the method for determining a rate as shown in fig. 1, fig. 2, and fig. 3.
The rate determining device may be specifically a network card module.
An embodiment of the present invention further provides a device for determining a rate, including:
a memory 702 for storing executable instructions;
a processor 701 configured to, when executing the executable instructions, perform the following:
acquiring attributes of each cage in at least one network card cage connected with a network card module, wherein the attributes of the cages are used for representing network transmission rates supported by the cages;
determining the attribute of the network card module according to the attribute of each cage, wherein the attribute of the network card module is used for representing the network transmission rate supported by the network card module;
each cage is connected with the network card module by being inserted into a connecting piece arranged on the network card module.
The processor 701 is configured to, when executing the executable instructions, further implement the following operations:
when the number of the cage inserted on the connecting piece is two or more, the method comprises the following steps:
acquiring identification information of each of the two or more cages;
determining the network transmission rate supported by each cage based on the identification information of each cage;
determining a target transmission rate from the network transmission rates supported by the cage;
and determining that the target transmission rate is the network transmission rate supported by the network card module.
Further, in the above-mentioned case,
the processor 701 is configured to, when executing the executable instructions, further implement the following operations:
determining the maximum rate in the network transmission rates supported by the cage as the target transmission rate;
or determining any rate of the network transmission rates supported by the cage, which is less than or equal to the bearing rate of the network card module, as the target transmission rate;
or, determining the greater rate of the network transmission rates supported by the cage, which is less than or equal to the bearing rate of the network card module, as the target transmission rate.
The processor 701 is configured to, when executing the executable instructions, further implement the following operations:
when there is one cage inserted on the connecting member, the method further includes:
acquiring identification information in the cage;
determining a target transmission rate based on the identification information;
and determining that the target transmission rate is the network transmission rate supported by the network card module.
The processor 701 is configured to, when executing the executable instructions, further implement the following operations:
and switching the target transmission rate among the network transmission rates supported by the cage.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (6)

1. A method for determining a rate is applied to a network card module, and is characterized in that the method comprises the following steps:
acquiring attributes of each cage in at least one network card cage connected with a network card module, wherein the attributes of the cages are used for representing network transmission rates supported by the cages;
determining the attribute of the network card module according to the attribute of each cage, wherein the attribute of the network card module is used for representing the network transmission rate supported by the network card module;
obtaining the data type of data to be transmitted;
switching the attribute of the network card module according to the data type;
each cage is connected with the network card module by being inserted into a connecting piece arranged on the network card module;
when the number of the cage inserted into the connecting piece is two or more, determining the attribute of the network card module according to the attribute of each cage, wherein the attribute comprises the following steps:
acquiring identification information of each of the two or more cages;
determining the network transmission rate supported by each cage based on the identification information of each cage;
determining a target transmission rate from network transmission rates supported by the cages according to the bearing rate of the network card module and/or the data type of the data to be transmitted;
and determining that the target transmission rate is the network transmission rate supported by the network card module.
2. The method of claim 1, wherein when there is one cage inserted on the connector, the method further comprises:
acquiring identification information in the cage;
determining a target transmission rate based on the identification information;
and determining that the target transmission rate is the network transmission rate supported by the network card module.
3. The method of claim 1, further comprising:
determining the maximum rate in the network transmission rates supported by the cage as the target transmission rate;
or determining any rate of the network transmission rates supported by the cage, which is less than or equal to the bearing rate of the network card module, as the target transmission rate;
or, determining the greater rate of the network transmission rates supported by the cage, which is less than or equal to the bearing rate of the network card module, as the target transmission rate.
4. An apparatus for determining a rate, the apparatus comprising:
a memory for storing executable instructions;
a processor configured to, when executing the executable instructions, perform the following:
acquiring attributes of each cage in at least one network card cage connected with a network card module, wherein the attributes of the cages are used for representing network transmission rates supported by the cages;
determining the attribute of the network card module according to the attribute of each cage, wherein the attribute of the network card module is used for representing the network transmission rate supported by the network card module;
obtaining the data type of data to be transmitted;
switching the attribute of the network card module according to the data type;
each cage is connected with the network card module by being inserted into a connecting piece arranged on the network card module;
the processor, when executing the executable instructions, is further configured to:
when the number of the cages inserted into the connecting piece is two or more, acquiring identification information of each of the two or more cages;
determining the network transmission rate supported by each cage based on the identification information of each cage;
determining a target transmission rate from network transmission rates supported by the cages according to the bearing rate of the network card module and/or the data type of the data to be transmitted;
and determining that the target transmission rate is the network transmission rate supported by the network card module.
5. The device of claim 4, wherein the processor, when executing the executable instructions, is further configured to:
when one cage inserted into the connecting piece is used, acquiring identification information in the cage;
determining a target transmission rate based on the identification information;
and determining that the target transmission rate is the network transmission rate supported by the network card module.
6. The device of claim 4, wherein the processor, when executing the executable instructions, is further configured to:
determining the maximum rate in the network transmission rates supported by the cage as the target transmission rate;
or determining any rate of the network transmission rates supported by the cage, which is less than or equal to the bearing rate of the network card module, as the target transmission rate;
or, determining the greater rate of the network transmission rates supported by the cage, which is less than or equal to the bearing rate of the network card module, as the target transmission rate.
CN201711352134.XA 2017-12-15 2017-12-15 Method and device for determining rate Active CN107968728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711352134.XA CN107968728B (en) 2017-12-15 2017-12-15 Method and device for determining rate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711352134.XA CN107968728B (en) 2017-12-15 2017-12-15 Method and device for determining rate

Publications (2)

Publication Number Publication Date
CN107968728A CN107968728A (en) 2018-04-27
CN107968728B true CN107968728B (en) 2021-01-15

Family

ID=61994508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711352134.XA Active CN107968728B (en) 2017-12-15 2017-12-15 Method and device for determining rate

Country Status (1)

Country Link
CN (1) CN107968728B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1902846A (en) * 2004-01-07 2007-01-24 M英国知识产权有限公司 Module for network interface card
CN201928295U (en) * 2011-01-07 2011-08-10 北京捷世伟业电子科技有限公司 Network card
CN202634718U (en) * 2012-02-16 2012-12-26 吴法根 Multi-interface router
CN204272152U (en) * 2014-12-25 2015-04-15 浪潮电子信息产业股份有限公司 A kind of four mouthfuls of gigabit extrapolation network interface cards of optional management function

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106059673A (en) * 2016-05-18 2016-10-26 青岛海信宽带多媒体技术有限公司 Optical module and optical line terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1902846A (en) * 2004-01-07 2007-01-24 M英国知识产权有限公司 Module for network interface card
CN201928295U (en) * 2011-01-07 2011-08-10 北京捷世伟业电子科技有限公司 Network card
CN202634718U (en) * 2012-02-16 2012-12-26 吴法根 Multi-interface router
CN204272152U (en) * 2014-12-25 2015-04-15 浪潮电子信息产业股份有限公司 A kind of four mouthfuls of gigabit extrapolation network interface cards of optional management function

Also Published As

Publication number Publication date
CN107968728A (en) 2018-04-27

Similar Documents

Publication Publication Date Title
CN111090628B (en) Data processing method and device, storage medium and electronic equipment
CN106331822B (en) Method and device for playing multiple videos and electronic equipment
CN108874336B (en) Information processing method and electronic equipment
CN107832099A (en) A kind of client release compatible method, apparatus and storage medium
CN110007985B (en) Applet music player component calling method and equipment
US20160253318A1 (en) Apparatus and method for processing text
US20190107929A1 (en) Method and device for loading content of page, and electronic device
CN107203372A (en) Control shows method and device
CN109684258B (en) Signal processing device and method
CN104346224A (en) Using group page fault descriptors to handle context switches and process terminations in graphics processors
US20200034101A1 (en) Data displaying method and electronic device
CN109347899B (en) Method for writing log data in distributed storage system
KR20170036300A (en) Method and electronic device for providing video
CN114048415A (en) Form generation method and device, electronic equipment and computer readable storage medium
CN109753644A (en) A kind of RichText Edition method, apparatus, mobile terminal and storage medium
CN107968728B (en) Method and device for determining rate
CN107862035A (en) Network read method, device, Intelligent flat and the storage medium of minutes
CN112291602B (en) Video playing method, electronic equipment and storage medium
CN114339404A (en) Display method and device of screen protection wallpaper in windows system and electronic equipment
CN112036133B (en) File storage method and device, electronic equipment and storage medium
CN108234752A (en) Communication information methods of exhibiting, device, computer installation and computer storage media
CN110290517B (en) Digital media wireless wifi communication point reading system and method
CN112468829B (en) Sharing method of cache video, electronic device and computer readable storage medium
CN112764802A (en) Business logic customization method and device, electronic equipment and storage medium
CN111104551B (en) Live broadcast room label determining method and device, storage medium and electronic equipment

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