CN109614354A - Interface assignment method, board, equipment and storage medium - Google Patents

Interface assignment method, board, equipment and storage medium Download PDF

Info

Publication number
CN109614354A
CN109614354A CN201811527983.9A CN201811527983A CN109614354A CN 109614354 A CN109614354 A CN 109614354A CN 201811527983 A CN201811527983 A CN 201811527983A CN 109614354 A CN109614354 A CN 109614354A
Authority
CN
China
Prior art keywords
interface
type
data
board
cochain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811527983.9A
Other languages
Chinese (zh)
Other versions
CN109614354B (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.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks 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 Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN201811527983.9A priority Critical patent/CN109614354B/en
Publication of CN109614354A publication Critical patent/CN109614354A/en
Application granted granted Critical
Publication of CN109614354B publication Critical patent/CN109614354B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices

Abstract

The embodiment of the present application provides a kind of interface assignment method, board, equipment and storage medium.In the embodiment of the present application, by increasing switching module in board, by the total amount of data of total amount of data and lower link port transmission that switching module is transmitted according to the cochain interface for being in connected status on board chip, determine that unfortunately cochain interface still descends chain interface to interface quantity;Interface to be used is supplemented to the lazy weight of cochain interface or lower chain interface as newly-increased interface, to increase the data transmission capabilities of cochain interface or lower chain interface, it can flexible dynamically distribution interface, be conducive to improve the utilization rate of interface on board chip, it can also reduce and replace the cost of chip since interface is insufficient, improve the cost performance of the network equipment.

Description

Interface assignment method, board, equipment and storage medium
Technical field
This application involves network technique fields more particularly to a kind of interface assignment method, board, equipment and storage to be situated between Matter.
Background technique
With the fast development of ethernet technology, the port speed as ethernet switch technology product is from 1G, 10G 40G, 100G or even 400G are risen to, and users want the diversity of exchange service port and the application of flexibility Ask also more and more, such as Campus Networks core customer, more and more users tend to multiport form, have both needed gigabit electricity end Mouthful, it is also desirable to gigabit optical port, port speed had both needed 40G 100G again, so how to realize that the interchanger of high performance-price ratio is aobvious It obtains by being important.
Currently, the MAC chip of interchanger or the hardware interface of PHY chip are just configured when manufacturer produces Respective interface quantity and interface type, as switch function is stronger and stronger, preconfigured interface also can be by chip Step increases, however as configuration interface increase and variation at the time of user demand, will cause part configuration interface waste The problem of, so how more efficiently to become the key of design high performance-price ratio interchanger using interface.
Summary of the invention
The many aspects of the application provide a kind of interface assignment method, board, equipment and storage medium, to neatly Interface is dynamically distributed, the utilization rate of interface is improved.
The embodiment of the present application provides a kind of interface dynamic allocation method, suitable for the switching module on board, the board It further include board chip, the board chip includes multiple interfaces, which comprises obtains and is in from the multiple interface At least one of not-connected status interface to be used, and determine the current interface type of at least one interface to be used;Root The data of the total amount of data and lower link port transmission transmitted according to the cochain interface for being in connected status in the multiple interface are total Amount, determines the insufficient target interface type of interface quantity in cochain interface type and lower chain interface type;According to described at least one The current interface type of a interface to be used is to increase newly from least one described interface to be used under the target interface type Interface, to increase the data transmission capabilities of the target interface type.
The embodiment of the present application also provides a kind of board, comprising: board chip and the switching connecting with the board chip Module;The board chip includes multiple interfaces;The switching module, for obtaining from the multiple interface in not connected At least one of state interface to be used, and determine the current interface type of at least one interface to be used;According to described The total amount of data of total amount of data and lower link port transmission that cochain interface in multiple interfaces in connected status transmits, determines The insufficient target interface type of interface quantity in cochain interface type and lower chain interface type;At least one is to be used according to described The current interface type of interface is to increase interface under the target interface type newly from least one described interface to be used.
The embodiment of the present application also provides a kind of network equipment, including an at least above-mentioned board.
The embodiment of the present application also provides a kind of computer readable storage medium for being stored with computer program, and feature exists In causing one or more of processors to realize interfaces dynamic point when computer program is executed by one or more processors Step in method of completing the square.
In the embodiment of the present application, by increasing switching module in board, by switching module according on board chip In the total amount of data of total amount of data and lower link port transmission that the cochain interface of connected status transmits, interface quantity deficiency is determined Be cochain interface or lower chain interface;Interface to be used is supplemented to the number of cochain interface or lower chain interface as newly-increased interface Amount is insufficient, to increase the data transmission capabilities of cochain interface or lower chain interface, can flexible dynamically distribution interface, be conducive to improve The utilization rate of interface on board chip can also reduce and replace the cost of chip since interface is insufficient, improve the network equipment Cost performance.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is the structural schematic diagram of the network system where one exemplary network device of the application;
Fig. 2 is the flow diagram of the interface assignment method of one exemplary embodiment of the application;
Fig. 3 is the structural schematic diagram of the board of one exemplary embodiment of the application;
What Fig. 4 was that one exemplary embodiment of the application provides is under target interface type from least one interface to be used The flow diagram of newly-increased interface;
Fig. 5 is the structural schematic diagram of the board of one exemplary embodiment of the application;
Fig. 6 is the structural framing schematic diagram for the switching module that one exemplary embodiment of the application provides;
Fig. 7 is the structural framing schematic diagram for the network equipment that one exemplary embodiment of the application provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with the application specific embodiment and Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
Interchanger is the network equipment for data forwarding, can be provided for two network nodes being linked into interchanger Data path.The difference of interchanger according to demand, can be divided into wide-area network switch and LAN switch, and interchanger is according to matching Cassete exchange machine and frame type exchanger can be divided by setting.Wherein, since frame type exchanger has multiple boards and connects Mouthful, it can be achieved that more data-transformation facility and liked by users, however since interface is excessive, and the type of interface Also can not change, to bring the waste of part of interface interface as caused by being not used by.
In some embodiments of the application, by increasing switching module in board, by switching module according to board chip The total amount of data of total amount of data and lower link port transmission that the upper cochain interface in connected status transmits, determines interface quantity Unfortunately cochain interface still descends chain interface;Interface to be used is supplemented into cochain interface or lower chain interface as newly-increased interface Lazy weight, to increase the data transmission capabilities of cochain interface or lower chain interface, can flexible dynamically distribution interface, be conducive to The utilization rate for improving interface on board chip can also reduce and replace the cost of chip since interface is insufficient, improve network and set Standby cost performance.
Below in conjunction with attached drawing, the technical scheme provided by various embodiments of the present application will be described in detail.
Fig. 1 is the structural representation of the network system where a kind of network equipment that one exemplary embodiment of the application provides Figure.As shown in Figure 1, the network system 100 includes: terminal 101 and the network equipment 102.
Wherein, terminal 101 is the terminal device that user uses, and can be any equipment with certain computing capability, example It such as can be tablet computer, PC.The basic structure of terminal 101 includes: at least one processing unit and at least one A memory.The quantity of processing unit and memory depends on the configuration and type of terminal 101.Memory may include volatibility Memory, such as RAM also may include non-volatile memory, for example, read-only memory (Read-Only Memory, ROM), flash memory etc., or can also simultaneously include two types.Operating system (Operating is typically stored in memory System, OS), one or more application program, also can store program data etc..In addition to processing unit and memory it Outside, terminal 101 further includes some basic configuration, such as network card chip, IO bus, audio-video component etc..Optionally, terminal 101 It can also include some peripheral equipments, such as keyboard, mouse, input pen etc..Other peripheral equipments are many institute's weeks in the art Know, this will not be repeated here.
The network equipment 102 refers to can provide the equipment of the data forwarding of terminal device 101 in a network environment.In physics In realization, the network equipment 102 can be any equipment for being capable of providing data forwarding service, for example, can be cassete exchange machine, Frame type exchanger etc..No matter what type, interchanger it is basic composition mainly include processor, memory, interface board, Bus and power supply etc..
In the present embodiment, terminal 101 is used to respond the operation of user, and data to be forwarded are sent to the network equipment 102, The data to be forwarded can be request data, text data etc..The network equipment 102 upon receipt of the data, according to the number According to destination address the data are forwarded, when the destination address belongs to the ground in the region that the network equipment 102 is managed When location, data to be forwarded is directly forwarded to other terminals by content shown in bold portion, the network equipment 102 as shown in figure 1 104, when the destination address is not belonging to the address in the region that the network equipment 102 is managed, dotted portion institute as shown in figure 1 Data to be forwarded is sent to corresponding other network equipments for managing the destination address by the content shown, the network equipment 102 103, then data to be forwarded is sent to by other terminals 104 etc. according to destination address by other network equipments 103.
Optionally, which can also include receiving end equipment, be mainly used for receiving the equipment that terminal 101 is sent. Wherein, receiving end equipment can be server, and server refers to can provide information or data interactive service in a network environment Server.In physics realization, server can be General Server, Cloud Server, cloud host, virtual center etc., Ke Yiyou First select Cloud Server.The composition of server mainly includes processor, hard disk, memory, system bus etc. and general computer Framework is similar.
Optionally, by taking receiving end equipment is server as an example, what it is when the destination address direction in data to be forwarded is server, Data to be forwarded can also be sent to server according to the destination address by the network equipment 102 or other network equipments 103.
Optionally, when server to terminal 101 send data when, can also by above-mentioned specific data forwarding mode into Row, details are not described herein again.
In the present embodiment, terminal 101 can be connected to the network with the network equipment 102.The network connection can be Line network connection.
The network equipment 102 can be connected to the network with server, which can be cable network connection.
In above-mentioned network system 100, the network equipment 102 includes board, and board includes board chip, is had on board chip There are multiple interfaces.Wherein, the network equipment 102 is mainly to carry out data forwarding by these interfaces on board chip.At this Apply in embodiment, the interface type of these interfaces on board chip is dynamically configurable, that is to say, that on board chip Interface be used as cochain interface and be also used as lower chain interface, can be according to uplink and downlink data transfer demands flexible configuration.About such as What carries out the interface on board chip to dynamically distribute the description that can be found in following embodiments.
Below with reference to embodiment of the method, the process for carrying out interface assignment for the network equipment 102 is described in detail.
Fig. 2 is the flow diagram of the interface assignment method of the application another exemplary embodiment.The embodiment of the present application mentions This method 200 of confession is executed by the network equipment, wherein the network equipment includes at least one piece of board, and each board includes board core Piece, board chip includes that multiple interfaces increase switching module in the present embodiment on board, by switching module to board core The interface of on piece is dynamically distributed, that is to say, that this method 200 can specifically be executed by the switching module on board, such as Fig. 2 institute Show, this method 200 the following steps are included:
201: obtaining at least one interface to be used for being in not-connected status from multiple interfaces, and determine at least one The current interface type of interface to be used.
202: the total amount of data and lower link oral instructions transmitted according to the cochain interface for being in connected status in multiple interfaces Defeated total amount of data determines the insufficient target interface type of interface quantity in cochain interface type and lower chain interface type.
203: being target from least one interface to be used according to the current interface type of at least one interface to be used Interface is increased under interface type newly, to increase the data transmission capabilities of target interface type.
Wherein, board refers to the circuit board of offer business transmission, sends and receivees for completing message.As shown in figure 3, should Board chip is provided on board 300, which is for providing the module of interface and responsible data processing, for example, MAC (Media Access Control Address) chip.Wherein, board built-in chip type has multiple interfaces, dispatches from the factory in board chip When, it includes the quantity of interface just secure, in the factory of board chip, the type of each interface can also be preset.It can Selection of land, the type of interface can be cochain interface and lower chain interface.Such as, MAC chip is that have 48 serdes (SERializer Serializer/DESerializer deserializer) interface.The MAC chip when leaving the factory, can be defaulted with 24 cochain interfaces and 24 A lower chain port (being referred to as MDI (Media Dependent Interface) Media Dependent Interface).On MAC chip Interface of the cochain interface for straddle card forwarding data, can be attached, the network equipment with the cochain interface in the network equipment In cochain interface can be attached with the cochain interface in the network equipment on other MAC chips or the network equipment in it is upper Chain interface can be connect with the access port in other network equipments.The lower chain interface of MAC chip is the access for data transmission Mouthful, it can be attached with the lower chain interface in the network equipment, thus the terminal of lower chain interface and user by the network equipment Connection.
Correspondingly, cochain interface corresponding with chip and lower chain interface also are provided in the network equipment, it is upper in the network equipment Chain interface is for linking together the cochain interface of two board chips, or by the cochain interface of a chip and other networks The access port of equipment is attached, and the lower chain interface in the network equipment is for connecting the lower chain interface of user terminal and chip It connects.
It should be noted that each interface on chip needs to carry out with other corresponding interfaces for board chip Connection is just able to achieve the function of interface data forwarding, when the interface on board chip does not carry out route company with corresponding interface It connects, then the interface on the board chip is the stand-alone interface in state to be used, could be continued after needing to carry out connection It uses, then using such stand-alone interface as interface to be used, in the stand-alone interface when first time carrying out interface assignment, currently Interface type can be initial interface type, when the stand-alone interface is when second carries out interface assignment, if the stand-alone interface Interface type is not converted to its initial interface type, then the current interface type of the stand-alone interface can be the stand-alone interface by first The modified interface type of beginning interface type.For example, the initial interface type of No. 1 interface is that cochain interface type (can also regard For its current interface type), after first time interface assignment, No. 1 interface is converted to lower chain interface class by cochain interface type Type, since the interface type of No. 1 interface is not converted back to cochain interface type, is still lower chain in second of interface assignment Interface type, then the current interface type of No. 1 interface is then lower chain interface.In further interface assigning process, current interface class Type method of determination and so on, just repeats no more.
When the interface and other corresponding interfaces progress connection on board chip, then the interface on the board chip is place In the interface of connection status.
As shown in figure 3, board 300 further includes switching module.Switching module can be not connected with shape to being in board chip The interface of state is dynamically distributed, and specific assigning process is as follows:
At least one interface to be used for being in not-connected status is obtained from multiple interfaces, and determines that at least one waits making With the current interface type of interface;The total amount of data transmitted according to the cochain interface for being in connected status in multiple interfaces is under The total amount of data for linking port transmission, determines the insufficient target interface class of interface quantity in cochain interface type and lower chain interface type Type;It is target interface type from least one interface to be used according to the current interface type of at least one interface to be used Newly-increased interface down, to increase the data transmission capabilities of target interface type.
Optionally, the quantity of interface to be used can be counted by the data volume of the transmission to interface each on chip It determines or is determined according to the connection status of each interface, linked for example, having under 24 cochain interfaces and 24 on chip Mouthful, and wherein only have 20 cochain interfaces and 24 lower chain interfaces to be in connection status, then it can will be in the 4 of not-connected status A cochain interface is as interface to be used, and the interface for needing efficiently to utilize, i.e., efficiently utilizing has on interface or chip 24 cochain interfaces and 24 lower chain interfaces, and wherein the transmission data of 24 cochain interfaces are never fully used, Be less than interface can transmittability 50%, then can according to demand using wherein any 4 cochain interfaces as interface to be used, Efficiently utilize interface.
Optionally, at least one interface to be used for being in not-connected status is obtained from multiple interfaces, and is determined at least The current interface type of one interface to be used, comprising: send second message to board chip, second message is used to indicate board Chip reads the connection status, mark and current interface type of each interface from the corresponding register of each interface;Receive board Connection status, mark and the current interface type for each interface that chip returns;Source is identified according to the connection status of each interface In at least one not connected interface to be used, and determine the mark and current interface type of at least one interface to be used.
Wherein, register is a kind of depositing element, can be used to temporary instruction, data and address.In the present embodiment, should The register of board chip can be used to operating status, connection status, mark and the interface type of each interface of storage chip (if efficiently utilizing interface, be then current interface type) etc..Optionally, connection status may include connected status and do not connect State is connect, connected status refers to that the interface on chip carries out connection with corresponding interface, and not-connected status refers to chip On interface not with corresponding interface carry out connection;Operating status may include the data volume of the transmission of each interface.
It should be understood that efficiently interface is utilized to refer to for needing to change own interfaces type carries out the to be used of interface assignment Interface, then the efficient situation that should be at often being assigned using interface, interface type also can often change, efficient Using interface by after first time interface assignment, in second of interface assignment, interface type is not converted back to initial interface Type, then its interface type is then current modified interface type.
In addition, current interface type is to include that initial interface type and non-initial interface type are (i.e. modified to connect Mouth type).
For example, sending second message to MAC chip, which is used to indicate MAC chip and reads from its register To the connection status, mark and starting type of each interface, MAC chip return the connection status of each interface, mark and Starting type therefrom selects 4 interfaces in not-connected status, and determines the mark and starting type of this four interfaces For cochain interface.
It should be noted that the second message may be used to indicate that plate when sending the second message to board chip Card chip returns to the mark and current interface state of the interface in not-connected status, and board chip is receiving the message Afterwards, the connection status, mark and current interface type of each interface are got according to above-mentioned specific acquisition modes, and are selected Interface, its mark and current interface type in not-connected status.
Optionally, in the total amount of data and lower link transmitted according to the cochain interface for being in connected status in multiple interfaces The total amount of data of port transmission, determine in cochain interface type and lower chain interface type the insufficient target interface type of interface quantity it Before, further includes: first message is sent to board chip, first message is used to indicate board chip and returns in connected status The total amount of data of the total amount of data of cochain interface transmission and lower link port transmission;Being in for receiver board card chip return has connected shape The total amount of data of the total amount of data of the cochain interface transmission of state and lower link port transmission.
For example, according to described previously, first message is sent to MAC chip, which is used to indicate MAC chip from posting The total amount of data of the cochain interface and lower link port transmission on MAC chip is got in storage, MAC chip receives the message Afterwards, the operating status of each interface and the interface type of each interface are got from register, statistics interface type is upper The total amount of data of port transmission is linked, statistics interface type is the total amount of data of lower link port transmission, by the cochain interface after statistics The total amount of data of transmission and the total amount of data of lower link port transmission return.
It should be noted that the first message may be used to indicate that return when sending first message to board chip The data volume and interface type of the transmission of each interface in connected status, when receive board chip return be in After the data volume and interface type of the transmission of each interface of connected status, cochain interface transmission in interface type is counted The total amount of data of total amount of data and lower link port transmission.
Optionally, in the number for obtaining total amount of data and lower link port transmission that the cochain interface in connected status transmits Before total amount, or before obtaining the data volume of transmission of each interface in connected status, this method 200 can be with The connection status, mark and interface type of each interface are repeatedly obtained from board chip, determination is currently at not connected again The interface identifier and current interface type of state, more accurately find out or determine the interface for needing efficiently to utilize.
Optionally, according to the total amount of data for the cochain interface transmission for being in connected status in multiple interfaces and lower chain interface The total amount of data of transmission determines the side of the insufficient target interface type of interface quantity in cochain interface type and lower chain interface type Formula can be with are as follows: is compared the total amount of data of total amount of data and lower link port transmission that cochain interface transmits, determines to transmit The big interface type of total amount of data is as target interface type, and e.g., the total amount of data of cochain interface transmission is less than lower link oral instructions Defeated total amount of data, using lower chain interface as target interface type.
Optionally, according to the current interface type of at least one interface to be used, it is from least one interface to be used Increase interface under target interface type newly, comprising: according to the initial interface type of at least one interface to be used, at least one is waited for The new interface under target interface type is configured to using interface.
For example, according to described previously, when the initial interface type of interface to be used is 4 cochain interfaces, then can by this 4 Newly-increased interface of a cochain interface as lower chain interface.
It should be noted that if the initial interface type of interface to be used is 4 lower chain interfaces, then it can also be 4 by this Newly-increased interface of the lower chain interface as lower chain interface.
It should be understood that whether interface to be used carries out interface assignment in the embodiment of the present application, it can be by target interface type Influence, can not also be influenced by target interface type.And the standard whether influenced by interface type can optionally and It is fixed, it is not construed as limiting herein, but regardless of whether influenced by interface type to increase interface newly, in the protection scope of the present embodiment It is interior.
Optionally, according to the initial interface type of at least one interface to be used, at least one interface to be used is configured For the new interface under target interface type, comprising: if initial interface type is different from target interface type, sent to board chip Interface type modifies instruction message, and the initial interface type of interface to be used is revised as target interface class with indicator board card chip Type;And at least one interface to be used is connected in board chip belonging network equipment by interface switch and is connect with target On the corresponding interface of mouth type.
For example, when interface to be used is 4 cochain interfaces, and target interface type is lower link according to described previously When mouth, then 4 cochain interfaces and 4 lower chain interfaces in the network equipment are attached by calling interface switch, so that this 4 Cochain interface conversion is 4 lower chain interfaces, while sending modification instruction message to board chip, and indicator board card chip is by this 4 The interface type of cochain interface is revised as lower chain interface.
Optionally, as shown in figure 4, waiting making from least one according to the current interface type of at least one interface to be used It is interface newly-increased under target interface type in interface, comprising: 401: if including current interface at least one interface to be used Type and the different part of target interface type interface to be used modify instruction message to board chip transmission interface type, The current interface type of part interface to be used is revised as target interface type with indicator board card chip;And 402: by connecing At least one portion interface to be used is connected in board chip belonging network equipment and target interface type pair by mouth switch On the interface answered.
Wherein, interface switch is the switch of the corresponding interface on the interface and the network equipment in connecting plate card chip Equipment.It can have multiple switch on the interface switch, each switch is attached for one group of corresponding interface.
It should be noted that before carrying out interface switching, the board chip interface for needing to prepare efficiently to utilize in advance with One end of interface switch connects, and the other end for being connected with the interface switch of board chip interface is then not connected to any network Equipment interface, when needing the interface conversion efficiently utilized is other kinds of interface, interface switch is then by the other end It is attached with the corresponding interface in the network equipment.
Optionally, if at least one interface to be used including current interface type and the different portion of target interface type Point interface to be used modifies instruction message to board chip transmission interface type, is connect with indicator board card chip by part is to be used The mode that the current interface type of mouth is revised as target interface type can are as follows: when interface to be used includes at least one cochain interface When at least one lower chain interface, then modification instruction message is sent to board chip, indicator board card chip is by least one cochain Interface is revised as chain interface under target interface type, or at least one lower chain interface is revised as linking in target interface type Mouthful.
For example, when interface to be used is 4 cochain interfaces and 4 lower chain interfaces, and target connects according to described previously When mouth type is lower chain interface, then calling interface switch carries out 4 lower chain interfaces in 4 cochain interfaces and the network equipment Connection so that 4 cochain interface conversions are 4 lower chain interfaces, while sending modification instruction message, indicator board to board chip The interface type of 4 cochain interfaces is revised as lower chain interface by card chip.
It should be noted that board chip carries out interface type modification to the corresponding interface, can make in subsequent forwarding number According to when, reduce as interface type it is unmodified and caused by loss of data probability.
In addition, at least one interface to be used is matched for the initial interface type according at least one interface to be used The new interface being set under target interface type, if also may include: includes initial interface type at least one interface to be used With the different part of target interface type interface to be used, instruction message is modified to board chip transmission interface type, to refer to Show that the initial interface type of part interface to be used is revised as target interface type by board chip;And pass through interface switch At least one interface to be used is connected in board chip belonging network equipment on interface corresponding with target interface type.
Due to for configuring the new interface under target interface type for interface to be used according to initial interface type, with, According to current interface type, from being to increase interface under target interface type newly in interface to be used, specific implementation process is similar, herein Just repeat no more.
In some instances, this method 200 further comprises: when from least one interface to be used be target interface class After increasing interface newly under type, the interface identifier and current interface type of newly-increased interface are shown.
For example, according to described previously, after completing 4 cochain interface conversions to be used is 4 lower chain interfaces, Ke Yixiang User shows that interface switch prompting information, the prompt information may include the interface identifier and current interface of newly-increased lower chain interface Type is lower chain interface, to inform that currently newly-increased interface can be used in user.
In some instances, this method 200 further comprises: in preset time, if detecting, newly-increased interface is not made With, then execute next time increase newly interface operation.
For example, after completing interface switching, within 2 hours of preset time, being sent to board chip according to described previously Message is obtained, which obtains the connection status or operating status of newly-increased interface from its register, And the mark that message carries newly-increased interface is obtained, the connection status and mark of the newly-increased interface that receiver board card chip returns can With according to connection status identify newly-increased interface be in not-connected status then again trigger interface assignment method 200, again into Line interface distribution.
It should be noted that when re-starting interface assignment, it can be extensive by the current interface type for increasing interface newly before Starting type is arrived again, to carry out interface assignment according to starting type, current interface type can not also be restored, directly According to the newest interface type of newly-increased interface, i.e. current interface type carries out interface assignment.
If current interface type recovery to starting type can be sent the message to realize to board chip, specific implementation Mode elaborated above, was not described in more detail here.
It should be noted that the prompt letter for whether carrying out intelligence interface distribution shown to user after network equipment starting Breath, in response to the intelligence interface batch operation of user, triggers this method 200 after user selects the option of intelligence interface distribution Execution step, if after user selects the option of non intelligent interface assignment, being operated in response to the non intelligent interface assignment of user, no The execution step for triggering this method 200, until user selects the option of intelligence interface distribution.
Technical scheme is described in detail below with reference to exemplary application scene:
Scene 1: being forwarded in the application scenarios of text data in Intranet by the interaction machine network equipment, and party A-subscriber passes through A end Hold sending information data to the party B-subscriber of B terminal, A terminal responds the transmission instruction of party A-subscriber, the shape that text data is passed through message Formula is sent to the lower chain interface corresponded in board MAC chip in interchanger by the Medium Dependent Interface of user side, board MAC chip according to Destination-mac address in the message determines that target terminal belongs to Intranet range, then passes through upper link workable for board MAC chip Mouthful, which is forwarded to the workable cochain interface of board chip corresponding with destination-mac address in the interchanger, this is right The board chip answered is sent to B by lower chain interface workable for it according to the destination-mac address received in message, by message The Medium Dependent Interface of terminal so that B terminal receives the message, and shows party B-subscriber, party B-subscriber is allowed to check text data.
Fig. 5 is the structural schematic diagram of the board of the application another exemplary embodiment.The board 500 includes: board chip 501 and the switching module 502 that is connect with board chip;Board chip 501 includes multiple interfaces.
Switching module 502, for obtaining at least one interface to be used for being in not-connected status from multiple interfaces, and Determine the current interface type of at least one interface to be used;It is passed according to the cochain interface for being in connected status in multiple interfaces The total amount of data of defeated total amount of data and lower link port transmission, determines interface quantity in cochain interface type and lower chain interface type Insufficient target interface type;According to the current interface type of at least one interface to be used, from least one interface to be used In be under the target interface type increase newly interface.
Optionally, as shown in fig. 6, switching module 502 includes: interface switch 601 and logic control element 602.
At least one interface to be used is connected in 501 belonging network equipment of board chip and mesh by interface switch 601 It marks on the corresponding interface of interface type.
Logic control element 602, at least one for obtaining from multiple interfaces in not-connected status to be used connect Mouthful, and determine the current interface type of at least one interface to be used;According to the cochain for being in connected status in multiple interfaces The total amount of data of the total amount of data of interface transmission and lower link port transmission, determines and connects in cochain interface type and lower chain interface type The target interface type of mouth lazy weight;According to the current interface type of at least one interface to be used, pass through interface switch 601 from least one interface to be used be target interface type under increase newly interface.
Optionally, switching module 502 is programmable logic device, for example, CPLD (Complex Programmable Logic Device) Complex Programmable Logic Devices and the scene FPGA (Field-Programmable Gate Array) can Program gate array.
It should be noted that when carrying out from least one interface to be used to increase interface newly under target interface type, Logic control element 602 sends a message to interface switch 601, and instruction interface switch 601 carries out interface switching, and the message Interface type after carrying the mark and switching for needing interface to switch.
The specific embodiment of the present embodiment elaborated above, was not described in more detail here.
Fig. 7 is the structural schematic diagram of the network equipment of the application another exemplary embodiment.The network equipment 700 includes upper At least board 500 in embodiment is stated, an at least board 500 includes board chip and cuts with what board chip was connect Change the mold block.
In addition, computer program is handled by one or more the embodiment of the invention provides a kind of computer storage medium When device executes, the step of causing one or more processors to realize interface assignment method in Fig. 2 embodiment of the method.
In addition, containing in some processes of the description in above-described embodiment and attached drawing according to particular order appearance Multiple operations, but it should be clearly understood that these operations can not execute or parallel according to its sequence what appears in this article It executes, serial number of operation such as 201,202,203 etc. is only used for distinguishing each different operation, and serial number itself does not represent Any executes sequence.In addition, these processes may include more or fewer operations, and these operations can be held in order Capable or parallel execution.It should be noted that the description such as " first " herein, " second ", is for distinguishing different message, setting Standby, module etc. does not represent sequencing, does not also limit " first " and " second " and is different type.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It is realized by the mode of required general hardware platform is added, naturally it is also possible to which reality is come in conjunction with by way of hardware and software It is existing.Based on this understanding, substantially the part that contributes to existing technology can be to calculate in other words for above-mentioned technical proposal The form of machine product embodies, and it wherein includes the meter of computer usable program code that the present invention, which can be used in one or more, The computer journey implemented in calculation machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of sequence product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processing of general purpose computer, special purpose computer, Embedded Processor or other programmable media data processing equipments Device is to generate a machine, so that the finger executed by the processor of computer or other programmable media data processing equipments It enables and generates to specify in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable media data processings are set In standby computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates Manufacture including command device, the command device are realized in one or more flows of the flowchart and/or one, block diagram The function of being specified in box or multiple boxes.
These computer program instructions can also be loaded on computer or other programmable media data processing equipments, be made It obtains and executes series of operation steps on a computer or other programmable device to generate computer implemented processing, thus counting The instruction executed on calculation machine or other programmable devices is provided for realizing in one or more flows of the flowchart and/or side The step of function of being specified in block diagram one box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (12)

1. a kind of interface dynamic allocation method, which is characterized in that suitable for the switching module on board, the board further includes plate Card chip, the board chip include multiple interfaces, which comprises
At least one interface to be used for being in not-connected status is obtained from the multiple interface, and determine it is described at least one The current interface type of interface to be used;
The total amount of data transmitted according to the cochain interface for being in connected status in the multiple interface and lower link port transmission Total amount of data determines the insufficient target interface type of interface quantity in cochain interface type and lower chain interface type;
It is described from least one described interface to be used according to the current interface type of at least one interface to be used Interface is increased under target interface type newly, to increase the data transmission capabilities of the target interface type.
2. the method according to claim 1, wherein according to being in connected status in the multiple interface The total amount of data of the total amount of data of cochain interface transmission and lower link port transmission, determines cochain interface type and lower chain interface type Before the middle insufficient target interface type of interface quantity, further includes:
First message is sent to the board chip, and the first message is used to indicate the board chip and returns in having connected The total amount of data of the total amount of data of the cochain interface transmission of state and lower link port transmission;
Receive the total amount of data and lower link oral instructions of the cochain interface transmission in connected status that the board chip returns Defeated total amount of data.
3. the method according to claim 1, wherein according to the current interface of at least one interface to be used Type is to increase interface under the target interface type newly from least one described interface to be used, comprising:
If the current interface type is initial interface type, according to the initial interface class of at least one interface to be used Type, the new interface configured at least one described interface to be used under the target interface type.
4. according to the method described in claim 3, it is characterized in that, at least one interface to be used according to it is initial Interface type, the new interface configured at least one described interface to be used under the target interface type, comprising:
If the initial interface type is different from the target interface type, the modification of Xiang Suoshu board chip transmission interface type refers to Show message, to indicate that the initial interface type of the interface to be used is revised as the target interface class by the board chip Type;And
By interface switch by least one described interface to be used be connected in the board chip belonging network equipment with On the corresponding interface of the target interface type.
5. the method according to claim 1, wherein according to the current interface of at least one interface to be used Type is to increase interface under the target interface type newly from least one described interface to be used, comprising:
If at least one described interface to be used including current interface type and the different part of target interface type Interface to be used, Xiang Suoshu board chip transmission interface type modifies instruction message, to indicate the board chip by the portion The current interface type of interface to be used is divided to be revised as the target interface type;And
Described at least one portion interface to be used is connected to the board chip belonging network equipment by interface switch On upper interface corresponding with the target interface type.
6. the method according to claim 1, wherein described obtain from the multiple interface in not connected shape At least one of state interface to be used, and determine the current interface type of at least one interface to be used, comprising:
Second message is sent to the board chip, it is corresponding from each interface that the second message is used to indicate the board chip The connection status, mark and current interface type of each interface are read in register;
Receive connection status, mark and the current interface type of each interface that the board chip returns;
It is identified according to the connection status of each interface at least one not connected interface to be used, and determines described at least one The mark and current interface type of a interface to be used.
7. the method according to claim 1, wherein the method further includes: when from it is described at least one It is to show the interface identifier and current interface of newly-increased interface after increasing interface newly under the target interface type in interface to be used Type.
8. the method according to claim 1, wherein the method further includes:
In preset time, if detecting, the newly-increased interface is not used by, and is executed and is increased interface operation newly next time.
9. a kind of board characterized by comprising board chip and the switching module being connect with the board chip;It is described Board chip includes multiple interfaces;
The switching module, for obtaining at least one interface to be used for being in not-connected status from the multiple interface, And determine the current interface type of at least one interface to be used;According to being in connected status in the multiple interface The total amount of data of the total amount of data of cochain interface transmission and lower link port transmission, determines cochain interface type and lower chain interface type The middle insufficient target interface type of interface quantity;According to the current interface type of at least one interface to be used, from described It is to increase interface under the target interface type newly at least one interface to be used.
10. board according to claim 9, which is characterized in that the switching module includes: interface switch and logic control Unit processed;
The interface switch by least one described interface to be used be connected in the board chip belonging network equipment with On the corresponding interface of the target interface type;
The logic control element, at least one for obtaining from the multiple interface in not-connected status to be used connect Mouthful, and determine the current interface type of at least one interface to be used;Shape is had connected according to being in the multiple interface The total amount of data of the total amount of data of the cochain interface transmission of state and lower link port transmission, determines cochain interface type and lower chain interface The insufficient target interface type of interface quantity in type;According to the current interface type of at least one interface to be used, lead to Crossing the interface switch is to increase interface under the target interface type newly from least one described interface to be used.
11. a kind of network equipment, which is characterized in that including the described in any item at least boards of claim 9-10.
12. a kind of computer readable storage medium for being stored with computer program, which is characterized in that the computer program is by one When a or multiple processors execute, one or more of processors is caused to realize in any one of claim 1-8 the method The step of.
CN201811527983.9A 2018-12-13 2018-12-13 Interface distribution method, board card, equipment and storage medium Active CN109614354B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811527983.9A CN109614354B (en) 2018-12-13 2018-12-13 Interface distribution method, board card, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811527983.9A CN109614354B (en) 2018-12-13 2018-12-13 Interface distribution method, board card, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109614354A true CN109614354A (en) 2019-04-12
CN109614354B CN109614354B (en) 2020-08-25

Family

ID=66007546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811527983.9A Active CN109614354B (en) 2018-12-13 2018-12-13 Interface distribution method, board card, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109614354B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114629860A (en) * 2022-03-17 2022-06-14 北京恒安嘉新安全技术有限公司 Data transmission method, device, service line card and storage medium
CN114900469A (en) * 2022-06-10 2022-08-12 苏州浪潮智能科技有限公司 Method, system, equipment and medium for controlling data flow of multi-host network card

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7003331B2 (en) * 2002-06-26 2006-02-21 Lenovo (Singapore) Pte. Ltd. Apparatus, method and program to optimize battery life in a wireless device
CN101123587A (en) * 2007-09-13 2008-02-13 杭州华三通信技术有限公司 Traffic control method and device for switch service flow
CN103701726A (en) * 2013-12-31 2014-04-02 上海斐讯数据通信技术有限公司 Interface index managing method and system of core switch
CN104717152A (en) * 2013-12-17 2015-06-17 深圳市中兴微电子技术有限公司 Method and device for achieving interface caching dynamic allocation
CN106330782A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Port capacity distribution method and device, and switch service board
CN106603303A (en) * 2016-12-30 2017-04-26 杭州迪普科技股份有限公司 Cloud aggregation board card switching method and device
CN107896196A (en) * 2017-12-28 2018-04-10 杭州迪普科技股份有限公司 A kind of method and apparatus of assignment message
CN108282417A (en) * 2017-12-15 2018-07-13 北京歌华有线电视网络股份有限公司 CHINA RFTCOM Co Ltd method for managing resource, device and broadcasting and TV VOD method, system
CN108616376A (en) * 2016-12-12 2018-10-02 中国航空工业集团公司西安航空计算技术研究所 A kind of FC network system failures dynamic reconfiguration method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7003331B2 (en) * 2002-06-26 2006-02-21 Lenovo (Singapore) Pte. Ltd. Apparatus, method and program to optimize battery life in a wireless device
CN101123587A (en) * 2007-09-13 2008-02-13 杭州华三通信技术有限公司 Traffic control method and device for switch service flow
CN104717152A (en) * 2013-12-17 2015-06-17 深圳市中兴微电子技术有限公司 Method and device for achieving interface caching dynamic allocation
CN103701726A (en) * 2013-12-31 2014-04-02 上海斐讯数据通信技术有限公司 Interface index managing method and system of core switch
CN106330782A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Port capacity distribution method and device, and switch service board
CN108616376A (en) * 2016-12-12 2018-10-02 中国航空工业集团公司西安航空计算技术研究所 A kind of FC network system failures dynamic reconfiguration method
CN106603303A (en) * 2016-12-30 2017-04-26 杭州迪普科技股份有限公司 Cloud aggregation board card switching method and device
CN108282417A (en) * 2017-12-15 2018-07-13 北京歌华有线电视网络股份有限公司 CHINA RFTCOM Co Ltd method for managing resource, device and broadcasting and TV VOD method, system
CN107896196A (en) * 2017-12-28 2018-04-10 杭州迪普科技股份有限公司 A kind of method and apparatus of assignment message

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114629860A (en) * 2022-03-17 2022-06-14 北京恒安嘉新安全技术有限公司 Data transmission method, device, service line card and storage medium
CN114629860B (en) * 2022-03-17 2024-01-30 北京恒安嘉新安全技术有限公司 Data transmission method, device, service line card and storage medium
CN114900469A (en) * 2022-06-10 2022-08-12 苏州浪潮智能科技有限公司 Method, system, equipment and medium for controlling data flow of multi-host network card
CN114900469B (en) * 2022-06-10 2023-07-25 苏州浪潮智能科技有限公司 Method, system, equipment and medium for controlling data flow of multi host network card

Also Published As

Publication number Publication date
CN109614354B (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CN107278362B (en) The method of Message processing, host and system in cloud computing system
CN102334112B (en) Method and system for virtual machine networking
CN103560967B (en) The virtual data center mapping method of a kind of business demand perception
CN109981457A (en) A kind of method of Message processing, network node and system
CN104518963A (en) Methods and apparatus for implementing connectivity between edge devices via a switch fabric
CN101877659B (en) Method, device and system for monitoring packet loss
CN103534989A (en) Priority based flow control in a distributed fabric protocol (DFP) switching network architecture
CN109842868B (en) Frame aggregation and network setting frame sending method and equipment
CN101076982A (en) Technology for controlling management flow
CN109614354A (en) Interface assignment method, board, equipment and storage medium
CN114338801B (en) Lightweight publishing and subscribing method and system suitable for intelligent measuring equipment, equipment and storage medium
CN103795815A (en) Network communication system and network communication method
CN106713010B (en) A kind of communication means and system of avionics network system
EP3253030B1 (en) Method and device for reporting openflow switch capability
CN106059964B (en) Message forwarding method and device
CN109672575A (en) Data processing method and electronic equipment
EP3691210B1 (en) Flexible ethernet message forwarding method and apparatus
CN109428815B (en) Method and device for processing message
CN112714146B (en) Resource scheduling method, device, equipment and computer readable storage medium
CN108092896A (en) Pile system and aggregation group establish device
CN104683130A (en) Method for configuring stacking port and equipment
CN112953739B (en) K8S platform-based method, system and storage medium for nanotube SDN
CN103281205A (en) Method for configuring isolating information at ports, and network equipment
CN112584261A (en) Optical transport network equipment and method for determining service data
CN115866066A (en) Data transmission method and device, nonvolatile 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