CN108667645A - A kind of method, apparatus, forwarding unit and the system of configuration interface - Google Patents

A kind of method, apparatus, forwarding unit and the system of configuration interface Download PDF

Info

Publication number
CN108667645A
CN108667645A CN201710213500.7A CN201710213500A CN108667645A CN 108667645 A CN108667645 A CN 108667645A CN 201710213500 A CN201710213500 A CN 201710213500A CN 108667645 A CN108667645 A CN 108667645A
Authority
CN
China
Prior art keywords
interface
transmission
receiving
mark
transmission interface
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
CN201710213500.7A
Other languages
Chinese (zh)
Other versions
CN108667645B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710213500.7A priority Critical patent/CN108667645B/en
Publication of CN108667645A publication Critical patent/CN108667645A/en
Application granted granted Critical
Publication of CN108667645B publication Critical patent/CN108667645B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Abstract

The application provides a kind of method, apparatus, forwarding unit and the system of configuration interface, is related to field of communication technology, can improve the utilization rate of the transfer resource of equipment.The device includes N number of transmission interface and M receiving interface;N number of transmission interface forms X transmission interface group, M receiving interface forms Y receiving interface group, at least one of at least one of X transmission interface group transmission interface group and Y receiving interface group receiving interface group form at least one bidirectional interface, the quantity for forming the transmission interface in the transmission interface group of each bidirectional interface is different with the quantity of the receiving interface in receiving interface group, and the receiving interface in the transmission interface and receiving interface group in the transmission interface group of each bidirectional interface of composition is connect with the same terminal device, the terminal device is the device being connect with the device, each bidirectional interface sends and receives data for the device, wherein, N, M, X and Y is positive integer, and X<N, Y<M.

Description

A kind of method, apparatus, forwarding unit and the system of configuration interface
Technical field
This application involves field of communication technology more particularly to a kind of method, apparatus of configuration interface, forwarding unit and it is System.
Background technology
With the development of video technique, the application of the video traffics such as 4K, 8K, virtual reality (virtual reality, VR) It is more and more extensive.
Currently, in Ethernet (Ethernet), generally use ethernet technology transmits video traffic.Specifically, such as Fig. 1 It is shown, it is assumed that video traffic to be transmitted between equipment X and equipment Y, then can be by a two-way Ethernet interface on equipment X One on (including transmission interface TX1 and receiving interface RX1) and equipment Y two-way Ethernet interface (including transmission interface TX2 With receiving interface RX2) it is connected.Specifically, as shown in Figure 1, can be by the reception on the transmission interface TX1 and equipment Y on equipment X Interface RX2 connections connect the receiving interface RX1 on equipment X with the transmission interface TX2 on equipment Y.
However, under normal conditions, it is assumed that equipment X asks video traffic to equipment Y, then being regarded to equipment Y requests in equipment X During frequency business, the inbound traffics (such as foradownloaded video business) on equipment X may be much larger than the outflow (example on equipment X Such as send the request message of request video traffic), and the both direction being connected with each other on equipment X and equipment Y in the above method The transmission rate of Ethernet interface is identical, therefore may be wasted and be set using above-mentioned ethernet technology transmission video traffic Standby transfer resource, the utilization rate so as to cause the transfer resource of equipment are relatively low.
Invention content
The application provides a kind of method, apparatus, forwarding unit and the system of configuration interface, can improve the transmission money of equipment The utilization rate in source.
In order to achieve the above objectives, the application adopts the following technical scheme that:
In a first aspect, providing a kind of device for configuring interface, which includes that N number of transmission interface and M connect Mouthful.N number of transmission interface forms X transmission interface group, M receiving interface Y receiving interface group of composition, in X transmission interface group At least one transmission interface group and at least one of Y receiving interface group receiving interface group form at least one bidirectional interface (each bidirectional interface at least one bidirectional interface sends and receives data for the device), and form each bidirectional interface Transmission interface group in transmission interface quantity and the receiving interface in receiving interface group quantity it is different, and composition is each (this is right with the same terminal device for the receiving interface in transmission interface and receiving interface group in the transmission interface group of bidirectional interface End device is the device being connect with the device) connection.Wherein, N, M, X and Y are positive integer, and X<N, Y<M.
In device provided by the present application for configuring interface, (number can be both sent due to forming each bidirectional interface According to the interfaces of data can be received again, and form transmission interface and receiving interface group in the transmission interface group of each bidirectional interface In receiving interface and the same terminal device) transmission interface group in transmission interface quantity and receiving interface group in connect The quantity for receiving interface is different, that is, forms the quantity and receiving interface group of the transmission interface in the transmission interface group of each bidirectional interface In the quantity of receiving interface can configure on demand, therefore the outflow on the bidirectional interface on the device provided by the present application and Inbound traffics can be different, such as the inbound traffics on the bidirectional interface can be more than the outflow on the bidirectional interface, in this way, going out In flow and the unbalanced application scenarios of inbound traffics, the utilization rate of the transfer resource of the device can be improved.
Illustratively, when the device transmits video traffic, since the inbound traffics on the device are typically much deeper than the device On outflow, i.e. outflow on the device and inbound traffics are usually unbalanced, thus for configure interface device use When bidirectional interface transmission video traffic provided by the present application, inbound traffics of the device on the bidirectional interface can be more than the device Outflow on the bidirectional interface can so improve the utilization rate of the transfer resource of the device.
In the first optional realization method of first aspect, it is assumed that the first bidirectional interface is above-mentioned at least one two-way Any one bidirectional interface in interface, then form first bidirectional interface transmission interface group in transmission interface and connect In the case that receiving interface in receipts interface group is located on the same chip in the device, which can be used for passing through composition A transmission interface in the transmission interface group of first bidirectional interface sent to other devices include the first transmission interface mark The Ether frame of knowledge, first transmission interface are the transmission interface to the first receiving interface transmission data on other devices, this One receiving interface is a receiving interface in the receiving interface group for form first bidirectional interface.In this way, the device can lead to It crosses and indicates to be likely to occur transmission data abnormal (such as transmission data error or transmission data on other devices to other devices Flow receive the flows of data beyond receiving terminal and need to suspend transmission data etc.) transmission interface so that other devices It can detect in time and handle the exception.
In second of optional realization method of first aspect, it is assumed that the first bidirectional interface is above-mentioned at least one two-way Any one bidirectional interface in interface, then the transmission interface in the transmission interface group for forming the first bidirectional interface and reception In the case that receiving interface in interface group is located on the different chips in the device, the device can be used in data surface or A transmission interface in transmission interface group of the control plane by forming first bidirectional interface to the transmission of other devices include the The Ether frame of the mark of one transmission interface, first transmission interface are on other devices to the first receiving interface transmission data Transmission interface, first receiving interface are a receiving interface in the receiving interface group for form first bidirectional interface.In this way, The device can abnormal (such as transmission data malfunctions by indicating to be likely to occur transmission data on other devices to other devices Or the flow of transmission data receives the flows of data beyond receiving terminal and needs to suspend transmission data etc.) transmission interface so that Obtaining other devices can detect and handle the exception in time.
It is appreciated that in the application, the mark of the first transmission interface in the Ether frame that the above-mentioned device is sent can be with Be used to indicate the Ether frame application transmission interface, such as the Ether frame statistics data be the transmission interface send etc..When So, the mark of the first transmission interface in the Ether frame also can indicate that it is any other it is possible in the case of the Ether frame apply Transmission interface will not enumerate herein.
In the first above-mentioned optional realization method and second of optional realization method, above-mentioned Ether frame can be physics Layer operation management service (physical layer operation administration and maintenance, PHY OAM) Ether frame or Bridge Protocol Data Unit (bridge protocol data unit, BPDU) Ether frame.
In the first above-mentioned optional realization method and second of optional realization method, the mark of the first transmission interface can Think the logical identifier of the first transmission interface.The logical identifier of first transmission interface can be the logic chain of the first transmission interface The media access control (media access control, MAC) of line (logic link ID) or the first transmission interface Address.
Wherein, above-mentioned when the logical identifier of above-mentioned first transmission interface is the Logical link ID of the first transmission interface Ether frame can be PHY OAM Ether frames or BPDU Ether frames;When the logical identifier of above-mentioned first transmission interface connects for first When receiving the MAC Address of interface, above-mentioned Ether frame can be BPDU Ether frames.
In the third optional realization method of first aspect, the device provided by the present application for configuring interface can be with For chip.The chip can be physical chip, or be integrated with the chip of physical layer function, can also be to be integrated with object Manage the chip of layer function and MAC layer function.
It is appreciated that in the application, it is provided by the present application in the first optional realization method of above-mentioned first aspect Device for configuring interface can be a chip, i.e. the device is a chip.Second in above-mentioned first aspect can It is provided by the present application for configure the device of interface to may include two or more chips in the realization method of choosing, i.e., The device can be made of different chips.
Second aspect provides a kind of forwarding unit, the forwarding unit include as first aspect or its any one it is optional The device for configuring interface in realization method.
To the description of the technique effect and other content of second aspect specifically may refer to it is above-mentioned to first aspect or its It anticipates a kind of associated description of the technique effect and other content of optional realization method, details are not described herein again.
The third aspect, provides a kind of method of configuration interface, and this method may include:First device passes through the first device On the first receiving interface receive second device by the first transmission interface in the second device send for determine this The first probe messages that the relationship between the transmission interface of bidirectional interface is not configured on one receiving interface and the first device (should Including at least the mark of the mark and first transmission interface of the second device in first probe messages);And in first detection In the case that the quantity of mark in message is equal to 5, which, which detects first mark in first probe messages, is It is no identical as the mark of the first device;And the mark of first mark and the first device in first probe messages In the case of identical, the first device configure first receiving interface and the second transmission interface (second transmission interface be this By the transmission interface of second mark instruction in first probe messages on one device) it is a bidirectional interface.
It is provided by the present application configuration interface method in, first device can according on first device each interface and its The practical connection relation between each interface on his device configures bidirectional interface on demand, i.e. first device can be according to the first dress Configuration includes different number to practical connection relation between each interface on each interface and other devices set on demand The bidirectional interface of transmission interface and receiving interface, in this way, two-way the connecing of the method configuration using configuration interface provided by the present application Outflow and inbound traffics on mouth can be different, such as the inbound traffics on the bidirectional interface can be more than going out on the bidirectional interface Flow, to which in outflow and the unbalanced application scenarios of inbound traffics, the utilization rate of the transfer resource of the device can be improved.
In the first optional realization method of the third aspect, above-mentioned first device passes through first on the first device Before receiving interface receives the first probe messages of the second device by the first transmission interface transmission in the second device, this Shen The method for the configuration interface that please be provided can also include:First device is by the second transmission interface on the first device to second Device transmission is not configured on second transmission interface and the first device between the receiving interface of bidirectional interface for determining (second probe messages include the mark of the mark and second transmission interface of the first device to second probe messages of relationship Know).Wherein, above-mentioned first probe messages add second in the second device for the second device in second probe messages (second receiving interface is that the reception being connect with the second transmission interface on the first device in the second device connects to receiving interface Mouthful) mark, generate after the mark of the mark of the second device and the first transmission interface in the second device.In this way, the One device can send the second spy by being not configured to the second transmission interface of bidirectional interface on the first device to second device Text is observed and predicted, to determine the reception for being not configured to bidirectional interface on second transmission interface and the first device on the first device Relationship between interface, so that it is determined that second transmission interface on the first device can with which on the first device/ Which receiving interface is configured to a bidirectional interface.
In second of optional realization method of the third aspect, the method for configuration interface provided by the present application can also wrap It includes:In the case that the quantity of mark in above-mentioned first probe messages is less than 5, first device adds in first probe messages Add the third on the mark of the first receiving interface on the first device, the mark of the first device and the first device to send to connect The mark of mouth (the third transmission interface is the transmission interface being connect with the third receiving interface in 3rd device on the first device) Know, the transmission for being not configured to bidirectional interface on the third receiving interface and the 3rd device is determined for the 3rd device to generate The third probe messages of relationship between interface;Then the first device is sent by the third transmission interface to the 3rd device The third probe messages.In this way, the quantity of the mark in the first probe messages that first device receives second device transmission In the case of 5, first device can continue to add corresponding mark in first probe messages, to generate new detection After message (such as third probe messages), then by being not configured to the third transmission interface of bidirectional interface on first device to third Device sends the new probe messages, to so that the 3rd device determines third receiving interface in the 3rd device and should The relationship being not configured in 3rd device between the transmission interface of bidirectional interface, and then determine that the third in the 3rd device receives Interface can be configured to a bidirectional interface with which in the 3rd device/which transmission interface.
In the third optional realization method of the third aspect, the method for configuration interface provided by the present application can also wrap It includes:In the case that the quantity of mark in above-mentioned first probe messages is less than 5, first device adds in first probe messages Add the on the mark of the first receiving interface on the first device, the mark of the first device and the first device the 4th to send to connect (the 4th transmission interface is to have been configured to bidirectional interface on the first device and connect with the 4th in above-mentioned second device to mouth Receive interface connection transmission interface) mark, with generate determine that the in the second device the 4th connects for the second device 4th probe messages of the relationship between the first transmission interface on mouth and the second device;Then the first device by this Four transmission interfaces send the 4th probe messages to the second device.In this way, receiving second device transmission in first device In the case that the quantity of mark in first probe messages is less than 5, first device can continue to add in first probe messages Add corresponding mark, after generating new probe messages (such as the 4th probe messages), then by being configured on first device The new probe messages are sent to second device at the 4th transmission interface of bidirectional interface, so that the second device can be true To this on the 4th receiving interface being connect with the 4th transmission interface on first device in the fixed second device and the second device First device sends the relationship between the first transmission interface of first probe messages, for example, second device can determine this second To the first device on the 4th receiving interface being connect with the 4th transmission interface on first device on device and the second device The first transmission interface for sending first probe messages is configurable to a bidirectional interface.
In the application, the probe messages that a device is sent to another device can be also used for determining on a device The connection sent between the receiving interface for receiving the probe messages on the transmission interface and another device of the probe messages is closed System, i.e., the transmission interface is connected with the receiving interface.In this way, detecting what another device received in another device When the data that one device is sent occur abnormal, which can determine and receive the detection on another device The transmission interface (transmission interface that the probe messages are sent on a device) of the receiving interface connection of message is specially should Which transmission interface on one device, to another device can sent to device to be used to indicate this different The mark for the transmission interface that the probe messages are sent on a device is specified in normal Ether frame.
For example, above-mentioned first probe messages can be also used for determining the first receiving interface and second device on first device On the first transmission interface between connection relation, i.e., first probe messages can be also used for determine first device on first Receiving interface is connected with the first transmission interface in second device.Above-mentioned second probe messages can be also used for determining first device On the second transmission interface and second device on the second receiving interface (connecing for second probe messages is received in second device Receive interface) between connection relation, i.e., the second receiving interface on the second transmission interface and second device on first device connects It connects.Above-mentioned third probe messages can be also used for determining that the third on the third transmission interface and 3rd device on first device connects The connection relation between interface (receiving interface for receiving the third probe messages in 3rd device) is received, i.e., on first device Third transmission interface is connected with the third receiving interface in 3rd device.Above-mentioned 4th probe messages can be also used for determining first The 4th receiving interface on the 4th transmission interface and second device on device (receives the 4th probe messages in second device Receiving interface) between connection relation, i.e., the 4th on the 4th transmission interface and second device on first device connect Mouth connection.
In the 4th kind of optional realization method of the third aspect, if the first receiving interface on first device is deleted It removes, then the method for configuration interface provided by the present application can also include:First device is sent to second device for notifying this Second device deletes first in the first receiving interface and the second device on the first device preserved in the second device The notification message of relationship between transmission interface;Then the first device receive the second device transmission for confirm this second Device is successfully received the confirmation message of the notification message.In this way, can make second device updates in real time accordingly to connect thereon Connection relation on mouth and first device between the corresponding interface, so that the second device can accurately use thereon accordingly Transmission interface to the first device transmission data so that data can be transmitted correctly.
In the 5th kind of optional realization method of the third aspect, the method for configuration interface provided by the present application can also wrap It includes:In the case of the mark difference of first mark and first device in above-mentioned first probe messages, which loses Abandon first probe messages.Since the mark difference of first mark and first device in above-mentioned first probe messages can be with table Show that the original probe messages of the first probe messages are not the originally transmitted probe messages of first device, i.e., in first probe messages The quantity of mark have reached 5, but first probe messages be not used to first device determine it is each on first device Connection relation on interface and other devices between each interface, therefore first device can abandon the first detection report at this time Text.
Fourth aspect, provide it is a kind of for configuring the device of interface, the device may include receiving module, detection module and Configuration module.Wherein, receiving module is used to receive second device by the first receiving interface on the device and second be filled by this What the first transmission interface set was sent is used to determine the hair for being not configured to bidirectional interface on first receiving interface and the device Send the relationship between interface the first probe messages (in first probe messages including at least the mark of the second device and this The mark of one transmission interface);Quantity of the detection module for the mark in first probe messages that receiving module receives In the case of 5, detect first in first probe messages identify whether it is identical as the mark of the device;Configuration module It is identical with the mark of the device for first mark in detecting first probe messages in detection module, configuration (second transmission interface is on the device by second in first probe messages for first receiving interface and the second transmission interface The transmission interface of a mark instruction) it is a bidirectional interface.
In the first optional realization method of fourth aspect, the device provided by the present application for configuring interface may be used also To include sending module.Sending module is used to receive second device by the first receiving interface on the device in receiving module logical It crosses before the first probe messages that the first transmission interface in the second device is sent, passes through the second transmission interface on the device To the second device send for determine be not configured on second transmission interface and the device bidirectional interface receiving interface it Between the second probe messages of relationship (second probe messages include the mark of the mark and second transmission interface of the device Know).Wherein, above-mentioned first probe messages add second in the second device for the second device in second probe messages Receiving interface (second receiving interface is the receiving interface being connect with the second transmission interface on the device in the second device) Mark, generate after the mark of the mark of the second device and the first transmission interface in the second device.
In second of optional realization method of fourth aspect, the device provided by the present application for configuring interface may be used also To include generation module.Quantity of the generation module for the mark in the first probe messages that receiving module receives is less than 5 In the case of, the mark of the first receiving interface on the device, the mark of the device are added in first probe messages and are somebody's turn to do (the third transmission interface is to be connect with the third receiving interface in 3rd device on the device to third transmission interface on device Transmission interface) mark, determine that third receiving interface in the 3rd device and the third fill for the 3rd device to generate Set the third probe messages of the relationship between the transmission interface for being not configured to bidirectional interface;Above-mentioned sending module is additionally operable to pass through The third transmission interface sends the third probe messages that generation module generates to the 3rd device.
In the third optional realization method of fourth aspect, in the device provided by the present application for configuring interface, The case where quantity that above-mentioned generation module is additionally operable to the mark in the first probe messages that above-mentioned receiving module receives is less than 5 Under, it is added in first probe messages on the mark of the first receiving interface, the mark of the device and device on the device The 4th transmission interface (the 4th transmission interface be had been configured on the device bidirectional interface and with the in second device Four receiving interfaces connection transmission interface) mark, with generate determine that the in the second device the 4th connects for the second device Receive the 4th probe messages of the relationship between the first transmission interface in interface and the second device;Above-mentioned sending module is additionally operable to By the 4th transmission interface the 4th probe messages are sent to the second device.
In the 4th kind of optional realization method of fourth aspect, in the device provided by the present application for configuring interface, Above-mentioned sending module be additionally operable to the first receiving interface on the apparatus be deleted after, to second device send for notifying this Second device deletes the first transmission in the first receiving interface and the second device on the device preserved in the second device The notification message of relationship between interface;Above-mentioned receiving module be additionally operable to receive second device transmission for confirm this second Device is successfully received the confirmation message of the notification message.
In the 5th kind of optional realization method of fourth aspect, in the device provided by the present application for configuring interface, Above-mentioned configuration module is additionally operable to the mark of first mark and the device in detection module detects above-mentioned first probe messages In the case of difference, first probe messages that receiving module receives are abandoned.
To the description of the technique effect and other content of fourth aspect specifically may refer to it is above-mentioned to the third aspect or its It anticipates a kind of associated description of the technique effect and other content of optional realization method, details are not described herein again.
5th aspect provides a kind of device for configuring interface, which may include processor and memory.This is deposited Reservoir is for storing computer instruction, and when the apparatus is operative, which executes the computer instruction of memory storage, So that the processor executes the method such as the configuration interface in above-mentioned first aspect or its any one optional realization method.
6th aspect, provides a kind of computer readable storage medium, which includes that computer refers to It enables.When the computer instruction it is provided by the present application for configure run on the device of interface when so that the device can execute The method of configuration interface in above-mentioned first aspect or its any one optional realization method.
7th aspect, provides a kind of computer program product including computer instruction, when the computer program product exists When being run on the device provided by the present application for configuring interface so that the device can execute above-mentioned first aspect or it is arbitrary A kind of method of configuration interface in optional realization method.
Eighth aspect provides a kind of data center systems, which may include in above-mentioned second aspect Forwarding unit.
The description tool of technique effect and other content to the 5th aspect, the 6th aspect, the 7th aspect and eighth aspect It is related to other content that body may refer to the above-mentioned technique effect to first aspect or its any one optional realization method Description, details are not described herein again.
Description of the drawings
Fig. 1 is the schematic diagram of the Ethernet interface for the equipment that the prior art provides;
Fig. 2 is the Organization Chart of the data center systems of operation video traffic provided in an embodiment of the present invention;
Fig. 3 is the hardware schematic of interchanger provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram one for configuring the device of interface provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram two for configuring the device of interface provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram three for configuring the device of interface provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram four for configuring the device of interface provided in an embodiment of the present invention;
Fig. 8 is a kind of method schematic diagram of configuration interface provided in an embodiment of the present invention;
Fig. 9 is a kind of interface connection relationship diagram for configuring the device of interface provided in an embodiment of the present invention;
Figure 10 is a kind of structural schematic diagram five for configuring the device of interface provided in an embodiment of the present invention;
Figure 11 is a kind of structural schematic diagram six for configuring the device of interface provided in an embodiment of the present invention;
Figure 12 is a kind of structural schematic diagram seven for configuring the device of interface provided in an embodiment of the present invention.
Specific implementation mode
The terms "and/or", only a kind of incidence relation of description affiliated partner, indicates that there may be three kinds of passes System, for example, A and/or B, can indicate:Individualism A exists simultaneously A and B, these three situations of individualism B.Symbol herein Number "/" indicates that affiliated partner is that relationship such as A/B either indicates A or B.
Term " first ", " second " and " third " in the description and claims of this application etc. is for distinguishing not Same object, rather than for the particular order of description object.For example, first device, second device and 3rd device etc. are to use In the different device of difference, rather than it is used to describe the particular order of device;First receiving interface, the second receiving interface and third Receiving interface etc. is the particular order for distinguishing different receiving interfaces, rather than for describing receiving interface.
In embodiments of the present invention, " illustrative " or " such as " etc. words for indicate make example, illustration or explanation.This Be described as in inventive embodiments " illustrative " or " such as " any embodiment or design scheme be not necessarily to be construed as comparing Other embodiments or design scheme more preferably or more advantage.Specifically, use " illustrative " or " such as " etc. words purport Related notion is being presented in specific ways.
In the description of the embodiment of the present invention, unless otherwise indicated, the meaning of " plurality " is refer to two or more.Example Such as, multiple interfaces refer to two or more interfaces;Multiple receiving interfaces refer to two or more receiving interfaces.
Currently, in ethernet networks, ethernet technology transmission video traffic usually may be used.For example, in equipment X and equipment When Y is using ethernet technology transmission video traffic, it is assumed that equipment X asks video traffic to equipment Y, then in equipment X to equipment Y During asking video traffic, the inbound traffics (such as foradownloaded video business) on equipment X, which may be much larger than on equipment X, goes out stream Amount (such as sending the request message of request video traffic), and two sides being connected with each other on equipment X and equipment Y in the above method To the transmission rate of Ethernet interface be identical, therefore may wave using above-mentioned ethernet technology transmission video traffic The transfer resource for taking equipment, the utilization rate so as to cause the transfer resource of equipment are relatively low.
In order to solve the technical problem, the embodiment of the present invention provide a kind of method, apparatus of configuration interface, forwarding unit and System.By provided in an embodiment of the present invention for for configuring the device of interface, which to include that N number of transmission interface and M connect Receive interface.N number of transmission interface forms X transmission interface group, and M receiving interface forms Y receiving interface group, X transmission interface At least one of group at least one of transmission interface group and Y receiving interface group receiving interface group composition is at least one two-way Interface (not only with transmission data but also can receive the interfaces of data), and form in the transmission interface group of each bidirectional interface The quantity of transmission interface is different with the quantity of the receiving interface in receiving interface group, and the transmission of each bidirectional interface of composition connects (terminal device is and the device for receiving interface in transmission interface and receiving interface group in mouthful group and the same terminal device The device of connection) connection.Each bidirectional interface sends and receives data (specifically, each bidirectional interface is used for for the device The device is to the terminal device transmission data, and receives the data of terminal device transmission), wherein N, M, X and Y are just Integer, and X<N, Y<M.In the device, (not only with transmission data but also data can be received due to forming each bidirectional interface Interface, and form the receiving interface in the transmission interface and receiving interface group in the transmission interface group of each bidirectional interface with it is same A terminal device) transmission interface group in transmission interface quantity and the receiving interface in receiving interface group quantity it is different, Form the number of the quantity and the receiving interface in receiving interface group of the transmission interface in the transmission interface group of each bidirectional interface Amount can configure on demand, therefore the embodiment of the present invention provides outflow on the bidirectional interface on the device and inbound traffics can not Together, such as the inbound traffics on the bidirectional interface can be more than the outflow on the bidirectional interface, in this way, in outflow and inbound traffics In unbalanced application scenarios, the utilization rate of the transfer resource of the device can be improved.
In the embodiment of the present invention, the above-mentioned opposite end being connect with the device provided in an embodiment of the present invention for configuring interface fills It sets or device for configuring interface.Specifically, the structure and/or function etc. of the terminal device can be found in the present invention To the associated description provided in an embodiment of the present invention for configuring the device of interface in embodiment, and will not be described here in detail.
It is appreciated that in the embodiment of the present invention, forms the transmission interface in the transmission interface group of each bidirectional interface and connect The receiving interface received in interface group each means the transmission interface and receiving interface being connect with the same terminal device.
It is provided in an embodiment of the present invention configuration interface method, apparatus, forwarding unit and system can be applied to equipment it Between transmission services when, in the outflow and the asymmetric scene of inbound traffics in equipment.For example, system provided in an embodiment of the present invention Can be data center systems, which is specifically as follows the data center systems of operation video traffic.Such as Fig. 2 institutes Show, for a kind of Organization Chart of the data center systems of operation video traffic provided in an embodiment of the present invention.In fig. 2, the data Centring system includes two servers (being illustrated as server 10 and server 11 in Fig. 2 respectively), is all connected with two servers Rack (top of rack, TOR) interchanger 12, the convergence (aggregation, AGG) that is connect with TOR interchangers 12 exchanges Machine 13, and the client 14 that is connect with AGG interchangers 13.Assuming that client 14 passes through AGG interchangers 13 and TOR interchangers 12 From 11 foradownloaded video data of server 10 and server, then client 14 can send request video industry to AGG interchangers 13 The request message of business, AGG interchangers 13 forward the request message by TOR interchangers 12 to server 10 and server 11 again, After server 10 and server 11 receive the request message, what server 10 and server 11 can ask client 14 Video data is sent to AGG interchangers 13 by TOR interchangers 12, and such AGG interchangers 13 can forward the video data To client 14, to which client 14 completes the download of video data.It is exchanged by AGG interchangers 13 and TOR in client 14 Machine 12 is during the 11 foradownloaded video data of server 10 and server, since the request message of the request video traffic exists Shared flow (outflow on following referred to as TOR interchangers 12) is usually smaller on TOR interchangers 12, and video data Shared flow (inbound traffics on following referred to as TOR interchangers 12) is usually bigger on TOR interchangers 12, it is thus possible to It will appear the unbalanced problem of inbound traffics on the outflow and TOR interchangers 12 on TOR interchangers 12.The embodiment of the present invention In, (transmit video traffic in the outflow of equipment and the unbalanced application scenarios of the inbound traffics of equipment, improve equipment Equipment) transfer resource utilization rate, can be connect by the on-demand flexible configuration of interface in equipment, such as by the transmission in equipment Mouth and the on-demand flexible configuration of receiving interface.Illustratively, as shown in Fig. 2, to be transmitted with AGG interchangers 13 on TOR interchangers 12 For the interface of data, which includes 12 interfaces, which includes that 8 transmission interfaces and 4 connect Mouthful, it can be by the way that 8 transmission interfaces be formed 2 transmission interface groups (being illustrated as TX groups 1 and TX groups 2 in Fig. 2 respectively), this 4 A receiving interface forms 1 receiving interface group (being illustrated as RX groups 1 in Fig. 2 respectively), and by 2 transmission interface groups and this 1 Receiving interface group is configured to a bidirectional interface and (is illustrated as S1 in Fig. 2, which is that with transmission data but also can not only connect The interface of data is received, and flow when transmission data is different with flow when receiving data, and in 2 transmission interface groups Receiving interface in transmission interface and 1 receiving interface group is handed over the same AGG interchangers, such as AGG as shown in Figure 2 Change planes 13 connections) so that the quantity of the transmission interface in forming the transmission interface group of the bidirectional interface (is 8 transmissions Interface) it is different with the quantity of receiving interface (being 4 to receive) in receiving interface group, so that the TOR interchangers Outflow on the bidirectional interface and inbound traffics on 12 can be different, so improve the transfer resource of TOR interchangers 12 Utilization rate.
Interface provided in an embodiment of the present invention can be Ethernet interface.Such as transmission interface provided in an embodiment of the present invention Can be Ethernet transmission interface, receiving interface can be Ethernet receiving interface etc..
It is provided in an embodiment of the present invention for configure the device of interface can be chip, or setting including chip It is standby.The chip can be physical chip, or be integrated with the chip of physical layer function, can also be to be integrated with physical layer The chip of function and MAC layer function.Illustratively, which can be network interface card etc..The equipment can be forwarding unit, the forwarding Equipment can be interchanger or router.Below by taking forwarding unit is interchanger as an example, the embodiment of the present invention is carried in conjunction with Fig. 3 The hardware configuration of the forwarding unit of confession is illustratively illustrated.
As shown in figure 3, for the structural schematic diagram of interchanger provided in an embodiment of the present invention.The interchanger includes processor 20, memory 21 and the multiple interfaces being connect with processor 20 (are specifically as follows Ethernet interface, are with 4 interfaces in Fig. 3 Example, and in order to distinguish 4 interfaces, which is illustrated as interface 220, interface 221, interface 222 and interface 223 respectively). Processor 20 and memory 21 are connected by bus 23.Processor 20 can be integrated with central processing unit (central Processing unit, CPU) 200 and network processing unit (network processor, NP) 201.
Processor 20:For forwarding data by the interface on interchanger.Can usually it make in the processor 20 of interchanger With application-specific integrated circuit (application-specific integrated circuit, ASIC) chip, field programmable gate Array (field programmable gate array, FPGA) chip etc., to realize the high speed forward of data.
Memory 21:Configuration, operating system, retransmission protocol software etc. for storing interchanger.Memory 21 can be Volatile memory (volatile memory), such as random access memory (random-access memory, RAM).It deposits Reservoir 21 or nonvolatile memory (non-volatile memory), such as read-only memory (read-only Memory, ROM), flash memory (flash memory), hard disk (hard disk, HDD) or solid state disk (solid- State disk, SSD) etc..Memory 21 can also include the combination of the memory of mentioned kind.
Interface:The Ethernet interface being specifically as follows on interchanger.Interface in interchanger may include transmission interface and Receiving interface.Transmission interface is used for interchanger to other equipment transmission data;Receiving interface receives other equipment for interchanger The data of transmission.
The embodiment of the present invention provides a kind of device for configuring interface, which may include N+M interface.N+M Interface includes N number of transmission interface and M receiving interface.N number of transmission interface forms X transmission interface group, M receiving interface group At Y receiving interface group, at least one of X transmission interface group transmission interface group and at least one in Y receiving interface group A receiving interface group forms at least one bidirectional interface, forms the number of the transmission interface in the transmission interface group of each bidirectional interface Amount is different with the quantity of receiving interface in receiving interface group, and the transmission formed in the transmission interface group of each bidirectional interface connects Receiving interface in mouth and receiving interface group is connect with the same terminal device, which is the dress being connect with the device It sets.Each bidirectional interface can be used for the device and send and receive data (specifically, each bidirectional interface can be used for the device To the terminal device transmission data, and receive the data of terminal device transmission), wherein N, M, X and Y are positive integer, and X<N, Y<M.
Illustratively, it is assumed that N number of transmission interface is denoted as TX respectively0、TX1、TX2、……、TXN-2、TXN-1, M receiving interface It is denoted as RX respectively0、RX1、RX2、……、RXM-2、RXM-1, X=2, Y=2, then 2 transmission interface groups can be expressed as { TX0、 TX1、TX2、……、TXP-1And { TXP、……、TXN-2、TXN-1, 2 receiving interface groups can be expressed as { RX0、RX1、 RX2、……、RXQ-1And { RXQ、……、RXM-2、RXM-1}.Wherein, 1≤P≤N-1,1≤Q≤M-1 and P and Q are integer.This In inventive embodiments, N number of transmission interface and M receiving interface are divided into 2 transmission interface groups and 2 receiving interfaces on demand respectively After group, 2 transmission interface groups and 2 receiving interface groups can be configured at least one bidirectional interface on demand again, and And in configuration process, the quantity and reception that can configure the transmission interface in the transmission interface group for forming each bidirectional interface connect The quantity of receiving interface in mouth group is different.Wherein, it forms the transmission interface in the transmission interface group of each bidirectional interface and connects The receiving interface received in interface group is the interface being connect with the same terminal device.
Optionally, above-mentioned M can be equal with N.
The technical solution of the application in order to better understand provides the embodiment of the present invention below by taking M is equal with N as an example The device for configuring interface illustratively illustrated.
Assuming that M=N=4, then 4 transmission interfaces are denoted as TX respectively0、TX1、TX2And TX3;4 receiving interfaces are remembered respectively For RX0、RX1、RX2And RX3
As shown in (a) in Fig. 4, it is assumed that X=2, Y=2, then the 2 transmission interface groups configured on demand can be expressed as {TX0、TX1、TX2And { TX3, the 2 receiving interface groups configured on demand can be expressed as { RX0、RX1、RX2And { RX3, in this way, It, can be by transmission interface group { TX in the embodiment of the present invention0、TX1、TX2And receiving interface group { RX3One bidirectional interface of composition S10, by transmission interface group { TX3And receiving interface group { RX0、RX1、RX2Form another bidirectional interface S11.If each hair It is R to send the transmission rate of interface, and the rate of each receiving interface is also R, then bidirectional interface S10 is transmission rate be 3R and Receiving velocity is the interface of R;Bidirectional interface S11 is the interface that transmission rate is R and receiving velocity is 3R.Wherein, it forms two-way Transmission interface group { the TX of interface S100、TX1、TX2In each transmission interface and receiving interface group { RX3In receiving interface It is connect with the same terminal device ((a) in Fig. 4 is not shown);Form the transmission interface group { TX of bidirectional interface S113In hair Send interface and receiving interface group { RX0、RX1、RX2In each receiving interface ((a) in Fig. 4 does not show with the same terminal device Go out) connection.
As shown in (b) in Fig. 4, it is assumed that X=1, Y=2, then the 1 transmission interface group configured on demand can be expressed as {TX0、TX1、TX2、TX3, the 2 receiving interface groups configured on demand can be expressed as { RX0、RX1、RX2And { RX3, in this way, this It, can be by transmission interface group { TX in inventive embodiments0、TX1、TX2、TX3And receiving interface group { RX3One bidirectional interface of composition S12, by receiving interface group { RX0、RX1、RX2One one-way interfaces D10 of composition.If the transmission rate of each transmission interface is R, the rate of each receiving interface are also R, then it is 4R and interface that receiving velocity is R that bidirectional interface S12, which is transmission rate,; One-way interfaces D10 is the interface that receiving velocity is 3R.Wherein, the transmission interface group { TX of composition bidirectional interface S120、TX1、TX2、 TX3In each transmission interface and receiving interface group { RX3In receiving interface ((b) in Fig. 4 is not with the same terminal device Show) connection.
As shown in (c) in Fig. 4, it is assumed that X=4, Y=2, then the 4 transmission interface groups configured on demand can be expressed as {TX0}、{TX1}、{TX2And { TX3, the 2 receiving interface groups configured on demand can be expressed as { RX0、RX1、RX2And { RX3, In this way, in the embodiment of the present invention, it can be by transmission interface group { TX0And receiving interface group { RX3One bidirectional interface S13 of composition, By transmission interface group { TX2And receiving interface group { RX0、RX1、RX2Form another bidirectional interface S14;By transmission interface group {TX1One one-way interfaces D11 of composition, by transmission interface group { TX3Form another one-way interfaces D12.If each send connects The transmission rate of mouth is R, and the rate of each receiving interface is also R, is R and receives speed then bidirectional interface S13 is transmission rate Rate is the interface of R;Bidirectional interface S14 is the interface that transmission rate is R and receiving velocity is 3R;It one-way interfaces D11 and unidirectionally connects Mouth D12 is the interface that transmission rate is R.Wherein, the transmission interface group { TX of composition bidirectional interface S130In transmission interface With receiving interface group { RX3In receiving interface connect with the same terminal device ((c) in Fig. 4 is not shown);It forms two-way Transmission interface group { the TX of interface S142In transmission interface and receiving interface group { RX0、RX1、RX2In each receiving interface It is connect with the same terminal device ((c) in Fig. 4 is not shown).
It is provided in an embodiment of the present invention for configuring in the device of interface, due to can by least one transmission interface group with At least one receiving interface group form at least one bidirectional interface (not only with transmission data but also can receive the interfaces of data, And the receiving interface in the transmission interface and receiving interface group in the transmission interface group of each bidirectional interface of composition with it is same right End device), and make in the quantity and receiving interface group of the transmission interface in the transmission interface group of each bidirectional interface of composition The quantity of receiving interface is different, that is, forms the quantity and receiving interface of the transmission interface in the transmission interface group of each bidirectional interface The quantity of receiving interface in group can configure on demand, therefore on the bidirectional interface on the device provided in an embodiment of the present invention Outflow and inbound traffics can be different, such as the inbound traffics on the bidirectional interface can be more than the outflow on the bidirectional interface, In this way, in outflow and the unbalanced application scenarios of inbound traffics, the utilization rate of the transfer resource of the device can be improved.
Illustratively, when the device provided in an embodiment of the present invention for configuring interface transmits video traffic, due to this Inbound traffics on device are typically much deeper than the outflow on the device, i.e. outflow on the device and inbound traffics are usually uneven Weighing apparatus, therefore when transmitting video traffic using bidirectional interface provided by the present application for configuring the device of interface, the device is at this Inbound traffics on bidirectional interface can be more than outflow of the device on the bidirectional interface, can so improve the biography of the device The utilization rate of defeated resource.
In the embodiment of the present invention, when other devices (hereinafter referred to as device A) are (following to the above-mentioned device for configuring interface Referred to as device B) transmission data when, device A can be by the transmission interface on device A to device B transmission datas, correspondingly, dress The data can be received by the receiving interface on device B by setting B, when device B detects what the device A that device B is received was sent When data occur abnormal, device B need by device B on the transmission interface of the receiving interface one bidirectional interface of composition to dress It sets A and replys notification message.The receiving interface and transmission that bidirectional interface is formed due in the embodiment of the present invention, on device B connect Mouth is not one-to-one (i.e. the quantity of receiving interface and transmission interface that a bidirectional interface is formed on device B is different), And the receiving interface and transmission interface of one bidirectional interface of composition are likely located on the same chip in device B, it is also possible to position On different chips in device B, therefore device B needs to indicate to fill in an announcement message when replying notification message to device A It sets and occurs abnormal transmission interface on A to device B transmission datas, such device A can occur different according to transmission data on device A Normal transmission interface knows on device A abnormal (such as transmission data error or transmission data occur to device B transmission datas The flow that flow receives data beyond receiving terminal needs to suspend transmission data etc.) transmission interface be specially which on device A A transmission interface, then device A can handle the transmission data transmission interface occur the exception.
Optionally, in the embodiment of the present invention, above-mentioned notification message can be an Ether frame, which can be PHYOAM Ether frames or BPDU Ether frames.
Device A that device B is received still is detected to device B transmission datas and device B with above-mentioned device A below For exception occur in the data of transmission, respectively to being used to receive the receiving interface of data and for sending Ether frame on device B (receiving interface group where the receiving interface and the transmission interface group where the transmission interface form one and two-way connect transmission interface Mouthful, such as the bidirectional interface can be any one bidirectional interface in above-mentioned at least one bidirectional interface, and below referred to as First bidirectional interface) on the same chip in device B or device B for receiving the receiving interface of data and for sending out In the case of sending different chip of the transmission interface (i.e. the first bidirectional interface) of Ether frame in device B, device B is to device A When replying Ether frame, there is abnormal transmission interface in the Ether frame to device B transmission datas in device B on instruction device A Method is illustratively illustrated.
The first is optionally achieved in that:Transmission interface in the transmission interface group of the first bidirectional interface of above-mentioned composition and Receiving interface in receiving interface group is located on the same chip in device B.
In the first optional realization method, the first bidirectional interface can be appointing in above-mentioned at least one bidirectional interface One bidirectional interface of meaning.Device B can be by forming the first bidirectional interface on device B transmission interface group in a transmission connect Mouth sends Ether frame to device A, may include the mark of the first transmission interface in the Ether frame, which is device The upper transmission interfaces to the first receiving interface transmission data of A, first receiving interface are to form first bidirectional interface on device B Receiving interface group in a receiving interface.
Illustratively, as shown in fig. 5, it is assumed that occurring in forming the receiving interface group of the first bidirectional interface in device B abnormal Receiving interface be denoted as RX1, the transmission interface formed in device B in the transmission interface group of the first bidirectional interface is denoted as TX1 (transmission interface in the transmission interface group where the receiving interface and TX1 in receiving interface group where RX1 can be in device B In the same chip on;It is appreciated that RX1 and TX1 can be on the same chip in device B), connect with RX1 in device A The transmission interface connect is denoted as TX2, and the receiving interface being connect with TX1 in device A is denoted as RX2 (in the receiving interface group where RX2 Transmission interface in receiving interface and transmission interface group where TX2 can also be on the same chip in device A, and RX2 The transmission interface in the transmission interface group where receiving interface and TX2 in the receiving interface group at place also forms one and two-way connects Mouthful;It is appreciated that RX2 and TX2 can be on the same chip in device A), then device A is being sent out by TX2 to device B After sending data, device B can receive the data by RX1, and when device B detects that the data occur abnormal, device B can be with Ether frame is sent to device A by TX1, which includes the mark of TX2, and device A receives the Ether frame by RX2 Afterwards, device A can determine may be TX2 transmission datas on device A occur it is abnormal, to which device A can be detected and be located in time Manage the exception that TX2 occurs.Wherein, the RS in Fig. 5 indicates the adaptation sublayer (reconciliation sublayer) in chip.
In the embodiment of the present invention, device B directly can send Ether frame by TX1 to device A;Alternatively, as shown in figure 5, Device B can directly Physical Coding Sublayer (physical coding sublayer, PCS) by TX1 to device A send with Too frame.
It is optionally achieved in that for second:Transmission interface in the transmission interface group of the first bidirectional interface of above-mentioned composition and Receiving interface in receiving interface group is located on the different chips in device B.
In second of optional realization method, the first bidirectional interface can be appointing in above-mentioned at least one bidirectional interface One bidirectional interface of meaning.Device B can be connect in data surface or control plane by forming the transmission of the first bidirectional interface on device B A transmission interface in mouth group sends Ether frame to device A, may include the mark of the first transmission interface in the Ether frame, should First transmission interface is the transmission interface to the first receiving interface transmission data on device A, which is on device B Form a receiving interface in the receiving interface group of first bidirectional interface.
Illustratively, as shown in fig. 6, device B sends Ether frame in data facing device A, it is assumed that form first in device B The receiving interface being abnormal in the receiving interface group of bidirectional interface is denoted as RX1, and the transmission of the first bidirectional interface is formed in device B A transmission interface in interface group is denoted as the TX1 (transmissions where the receiving interface and TX1 in receiving interface group where RX1 Transmission interface in interface group can be on the different chips in device B;It is appreciated that RX1 and TX1 can be in device B On different chips), the transmission interface being connect with RX1 in device A is denoted as TX2, and the receiving interface being connect with TX1 in device A is denoted as (transmission interface in the transmission interface group where the receiving interface and TX2 in receiving interface group where RX2 can also be by RX2 In the transmission interface group where the receiving interface and TX2 in receiving interface group on different chips in device A, and where RX2 Transmission interface also form a bidirectional interface;It is appreciated that RX2 and TX2 can be on the different chips in device A), then Device A is by TX2, to after device B transmission datas, device B can receive the data by RX1, when device B detects this When data occur abnormal, device B can send Ether frame by TX1 in data surface to device A, which includes TX2's Mark, after device A receives the Ether frame by RX2, device A can determine to may be that TX2 transmission datas on device A occur It is abnormal, to which device A can be detected in time and handle the exception of TX2 appearance.Wherein, the MAC table in Fig. 6 shows the MAC in chip Layer.
In figure 6, on the different chips due to RX1 and TX1 in device B, device B is sent by TX1 to device A Before Ether frame, can the Ether frame be first transmitted to TX1 in data surface (such as more than MAC layer) as the chip where RX1 Then the chip at place sends the Ether frame by TX1 from the chip where TX1 to device A again.Correspondingly, if RX2 and TX2 is also on the different chips in device A, then after device A receives the Ether frame that device B is sent by RX2, RX2 institutes Chip the Ether frame can be transmitted to TX2 in data surface where chip, finally should be with as the chip processing where TX2 Too frame.
Illustratively, as shown in fig. 7, sending the schematic diagram of Ether frame in control facing device A for device B.For Fig. 7's Description specifically may refer to the above-mentioned associated description to Fig. 6, and details are not described herein again.
Places different with process shown in Fig. 7 Fig. 6 are that in figure 6, device B sends Ether frame by TX1 to device A It before, can be first as the chip where RX1 where the Ether frame be transmitted to TX1 by data surface (such as more than MAC layer) Chip sends the Ether frame by TX1 from the chip where TX1 to device A.In the figure 7, device B is sent out by TX1 to device A Before sending Ether frame, can the Ether frame be first transmitted to device in control plane (such as in PCS or more) as the chip where RX1 CPU in B sends the Ether frame by TX1 from the chip where the CPU controls TX1 in device B to device A.Correspondingly, such as Fruit RX2 and TX2 be also on the different chips in device A, then device A by RX2 receive Ether frame that device B is sent it Afterwards, which can be transmitted to the CPU in device A by the chip where RX2, as where the CPU controls RX2 in device A The Ether frame is transmitted to the chip where TX2 by chip, finally as the Ether frame of the chip processing where TX2.
Wherein, the RS in Fig. 6 and Fig. 7 indicates the adaptation sublayer in chip.
It should be noted that in the embodiment of the present invention, above-mentioned apparatus B can detect that the data that device A is sent go out in PCS It is now abnormal, (physical medium attachment, PMA) sublayer can also be connected in physical medium detects device A hairs There is exception in the data sent, can also be in related (physical medium dependent, PMD) sublayer detection of physical medium There is exception in the data sent to device A, and the embodiment of the present invention is not especially limited.For convenience, above-mentioned Fig. 5, Fig. 6 and It is illustratively to be illustrated for PCS detects that exception occur in the data that device A is sent by device B in Fig. 7.
It is appreciated that in the embodiment of the present invention, the first above-mentioned optional realization method and second of optional realization side In formula, the mark of the first transmission interface in the Ether frame that device B is sent to device A may be used to indicate that the Ether frame application Transmission interface, such as the Ether frame statistics data be the transmission interface send etc..Certainly, the first hair in the Ether frame Send the mark of interface also can indicate that it is any other it is possible in the case of the Ether frame apply transmission interface, herein no longer one by one It enumerates.
Optionally, in the embodiment of the present invention, the first above-mentioned optional realization method and second of optional realization method In, the mark of the first transmission interface can be the logical identifier of the first transmission interface.The logical identifier of first transmission interface can Think the Logical link ID of the first transmission interface or the MAC Address of the first transmission interface.The mark of first transmission interface Can in device/equipment where first transmission interface unique mark first transmission interface.Wherein, when the first transmission connects Mouthful logical identifier be the first transmission interface Logical link ID when, above-mentioned Ether frame can be PHY OAM Ether frames or BPDU Ether frames;When the logical identifier of the first transmission interface is the MAC Address of the first transmission interface, above-mentioned Ether frame can be BPDU Ether frames.
Optionally, in the embodiment of the present invention, when the logical identifier of above-mentioned first transmission interface is patrolling for the first transmission interface When collecting link identification, the Logical link ID of first transmission interface can add in the reserved field of above-mentioned Ether frame.
In the embodiment of the present invention, when the logical identifier of above-mentioned first transmission interface is the MAC Address of the first transmission interface, The first transmission can be set as by the target MAC (Media Access Control) address for the BPDU Ether frames for sending sending device (such as above-mentioned apparatus B) The MAC Address of interface is to indicate to occur the first abnormal transmission interface in reception device to the sending device transmission data;Or Can be used by the BPDU Ether frames for sending sending device (such as above-mentioned apparatus B) tunnel encapsulation technology (i.e. by BPDU with Too frame is intact is encapsulated as a new Ether frame) encapsulation, and the target MAC (Media Access Control) address of the new Ether frame after encapsulation is set The MAC Address of the first transmission interface is set to indicate to occur the first abnormal hair in reception device to the sending device transmission data Send interface.Specifically, can be according to any one in the actual use demand selection above method, the embodiment of the present invention does not limit It is fixed.
Optionally, in the embodiment of the present invention, in addition to above-mentioned PHY OAM Ether frames and BPDU Ether frames other are general Logical Ether frame, may not need when sending device sends these common Ether frames to other devices and refers in these common Ether frames Show the mark of relevant interface.Specifically, when sending device sends these common Ether frames to other devices, it can be by forming one All transmission interfaces in the transmission interface group of a bidirectional interface send these common Ether frames, example according to preset strategy of sharing All transmission interfaces in transmission interface group that such as can be by forming a bidirectional interface, which averraged, sends these common ether Frame.In this way, on other devices with a bidirectional interface is formed on sending device transmission interface group in all transmission interfaces When any one receiving interface receives above-mentioned common Ether frame in the receiving interface of connection, which is construed as The Ether frame that the bidirectional interface being made of these receiving interfaces on other devices receives.
Optionally, provided in an embodiment of the present invention for configure the device of interface can be chip.For retouching for the chip The specific associated description that may refer in above-described embodiment to chip is stated, details are not described herein again.
It is appreciated that in the embodiment of the present invention, in the first above-mentioned optional realization method, the embodiment of the present invention provides For configure interface device can be a chip, i.e., the device be a chip.In above-mentioned second optional realization It is provided in an embodiment of the present invention for configure the device of interface to may include two or more chips in mode, i.e., should Device can be made of different chips.
Device provided in an embodiment of the present invention for configuring interface, due to that can detect that the device receives in the device When the data that other devices are sent occur abnormal, which can indicate this other by PHY OAM Ether frames to other devices There is abnormal transmission interface in transmission data on device, therefore the device can support the transmission of PHY OAM Ether frames perfectly And processing.Also, indicating this other to other devices for configuring the device of interface due to provided in an embodiment of the present invention When abnormal transmission interface occurs in transmission data on device, without creating dedicated for indicating the tunnel of the transmission interface, therefore To avoid using dedicated for indicating that the tunnel of the transmission interface indicates the transmission interface transmission interface can be indicated to improve Efficiency.
The embodiment of the present invention also provides a kind of forwarding unit, which may include described in above-described embodiment Device for configuring interface.For example, the forwarding unit may include at least one chip.It is appreciated that above-mentioned for configuring In the device of interface, when the reception in the transmission interface and receiving interface group in the transmission interface group for forming each bidirectional interface connects Mouth on the same chip when, which may include a chip;When in the transmission interface group for forming each bidirectional interface Receiving interface in transmission interface and receiving interface group on different chips when or component part bidirectional interface transmission interface The receiving interface in transmission interface and receiving interface group in group on different chips when, which may include multiple chips.
It should be noted that the description of the device and chip for forwarding unit, for configuring interface can specifically be joined See the associated description of the device and chip in above-described embodiment to forwarding unit, for configuring interface, details are not described herein again.
The embodiment of the present invention also provides a kind of method of configuration interface, and the executive agent of the method for the configuration interface can be The above-mentioned device (being specifically as follows chip, or the equipment including chip) for configuring interface, which passes through execution This method can be with the transmission interface and receiving interface on the automatic identification device, and by corresponding transmission interface and receiving interface group At bidirectional interface.For the device for configuring interface is respectively first device, second device and 3rd device below, lead to The method that the interactive process crossed between three devices specifically describes configuration interface provided in an embodiment of the present invention.
Illustratively, as shown in figure 8, the embodiment of the present invention provides a kind of method of configuration interface, this method may include Following S101-S113.
S101, first device send the second probe messages by the second transmission interface on first device to second device.
Wherein, which includes the mark of first device and the mark of the second transmission interface.Second detection Message is for determining the relationship being not configured on the second transmission interface and first device between the receiving interface of bidirectional interface.
In the embodiment of the present invention, the mark of first device can be used in equipment/forwarding unit where the first device The mark of the middle unique mark first device, the second transmission interface can be used in the first device where second transmission interface Middle unique mark second transmission interface.
S102, second device receive first device by the second receiving interface in second device and pass through on first device The second probe messages that second transmission interface is sent.
S103, second device judge whether the quantity of the mark in the second probe messages is equal to 5.
In the case where second device judges that the quantity of the mark in the second probe messages is equal to 5, second device can be after It is continuous to execute the step of first device shown in following S108 executes, specifically, will in following S108 by taking first device as an example into The illustrative explanation of row, and will not be described here in detail.Mark in second device judges the second probe messages it is in varying numbers in 5, In the case of being, for example, less than 5, second device continues to execute following S104-S105.Judge the second probe messages in second device In mark it is in varying numbers in 5, in the case of being greater than 5, second device can abandon second probe messages.
S104, second device add the mark of the second receiving interface in second device, second in the second probe messages The mark of the first transmission interface in the mark and second device of device, to generate the first probe messages.
In the embodiment of the present invention, the mark of second device can be used in equipment/forwarding unit where the second device The mark of the middle unique mark second device, the first transmission interface can be used in the second device where first transmission interface The mark of middle unique mark first transmission interface, the second receiving interface can be used in second where second receiving interface Unique mark second receiving interface in device.Second receiving interface is to send to connect with second on first device in second device The receiving interface of mouth connection.
S105, second device send the first probe messages by the first transmission interface in second device to first device.
S106, first device receive second device by the first receiving interface on first device and pass through in second device The first probe messages that first transmission interface is sent.
Wherein, the first probe messages include the mark of the first transmission interface in the mark and second device of second device Know.First probe messages are not configured on the first receiving interface and first device between the transmission interface of bidirectional interface for determining Relationship.
S107, first device judge whether the quantity of the mark in the first probe messages is equal to 5.
In the case where first device judges that the quantity of the mark in the first probe messages is equal to 5, first device can be after It is continuous to execute following S108.
In the embodiment of the present invention, if the first probe messages that second device is sent to first device are that second device is original The probe messages sent out, then the mark being also possible that in above-mentioned S107 in the first probe messages is in varying numbers in 5, such as The case where less than 5.Specifically, mark in first device judges the first probe messages is in varying numbers in 5, it is, for example, less than 5 In the case of, first device can continue to execute following S110-S111 or first device can continue to execute it is following S110-S111 and S110 '-S111 ' (only continue to execute following S110-S111 with first device in Fig. 8 to illustrate, are not shown the The S110 '-S111 ' that one device executes).
In addition, mark in first device judges the first probe messages is in varying numbers in 5, the case where being greater than 5 Under, first device can abandon first probe messages.
S108, first device detect the first probe messages in first identify whether it is identical as the mark of first device.
First mark in first device detects the first probe messages is identical with the mark of first device, First device can continue to execute following S109.First mark and first in first device detects the first probe messages In the case of the mark difference of device, first device can continue to execute following S113.
S109, first device configure the first receiving interface and the second transmission interface is a bidirectional interface.
Wherein, the second transmission interface is to be connect by the transmission of second mark instruction in the first probe messages on first device Mouthful.The transmission interface of the second probe messages is sent as on first device to second device.
S110, first device added in the first probe messages the mark of the first receiving interface, the mark of first device and The mark of third transmission interface on first device, to generate third probe messages.
Wherein, third transmission interface is that the transmission being connect with the third receiving interface in 3rd device on first device connects Mouthful.The mark of third transmission interface can be used for unique mark third in the first device where the third transmission interface and send out Send interface.Third probe messages determine in third receiving interface and the 3rd device in the 3rd device not for 3rd device The relationship being configured between the transmission interface of bidirectional interface.
S111, first device send third probe messages by the third transmission interface on first device to 3rd device.
Optionally, S110 '-S111 ' is specifically as follows:
S110 ', first device added in the first probe messages the mark of the first receiving interface, the mark of first device and The mark of the 4th transmission interface on first device, to generate the 4th probe messages.
Wherein, the 4th transmission interface be first device on have been configured to bidirectional interface and with the 4th in second device The transmission interface of receiving interface connection.The mark of 4th transmission interface can be used in the first dress where the 4th transmission interface Set the 4th transmission interface of middle unique mark.4th probe messages determine that the in the second device the 4th receives for second device The relationship between the first transmission interface on interface and the second device.
S111 ', first device send the 4th probe messages by the 4th transmission interface on first device to second device.
S112,3rd device receive first device by the third receiving interface in 3rd device and pass through on first device The third probe messages that third transmission interface is sent.
Wherein, 3rd device receives the step of third probe messages execute later and first device receives the first detection It is identical that message and second device receive the step of executing after the second probe messages, specifically, may refer to above-mentioned to first Device receives the first probe messages and second device receives the associated description for the step of the second probe messages execute later, this Place is no longer described in detail.
Correspondingly, corresponding to above-mentioned S110 '-S111 ', the method for configuration interface provided in an embodiment of the present invention can also wrap Include S112 '.
S112 ', second device receive first device by the 4th receiving interface in second device and pass through on first device The 4th transmission interface send the 4th probe messages.
Wherein, the 4th receiving interface in above-mentioned second device is to be sent out with the 4th on the first device in the second device The receiving interface for sending interface to connect.After second device receives the 4th probe messages, the second device can determine this second To the first device on the 4th receiving interface being connect with the 4th transmission interface on first device on device and the second device The first transmission interface for sending first probe messages is configurable to a bidirectional interface.
Illustrate correspondingly, only executing above-mentioned S112 with 3rd device in Fig. 8, the S112 ' of second device execution is not shown.
S113, first device abandon the first probe messages.
In the embodiment of the present invention, the probe messages that a device is sent to another device can be also used for determining this It is sent on device between the receiving interface for receiving the probe messages on the transmission interface and another device of the probe messages Connection relation, the i.e. transmission interface are connected with the receiving interface.In this way, detecting that another device connects in another device When the data that the device received is sent occur abnormal, which can determine and be received on another device Transmission interface (transmission interface that the probe messages are sent on a device) tool of the receiving interface connection of the probe messages Body is which transmission interface on a device, to which another device can be being sent to a device for referring to Show the mark that the transmission interface that the probe messages are sent on a device is specified in the Ether frame of the exception.
For example, as shown in figure 9, above-mentioned first probe messages can be also used for determining the first receiving interface on first device The connection relation between the first transmission interface B1 on A1 and second device, i.e. first probe messages can be also used for determining the The first receiving interface A1 on one device is connected with the first transmission interface B1 in second device.Above-mentioned second probe messages may be used also For determining that the second receiving interface on the second transmission interface A2 and second device on first device (connects in second device Receive the receiving interface of second probe messages) connection relation between B2, i.e., the second transmission interface A2 on first device and The second receiving interface B2 connections on two devices.Above-mentioned third probe messages can be also used for determining the third hair on first device Send the third receiving interface (receiving interface that the third probe messages are received in 3rd device) in interface A3 and 3rd device Connection relation between C1, i.e., the third receiving interface C1 on the third transmission interface A3 and 3rd device on first device connect It connects.Above-mentioned 4th probe messages can be also used for determining the 4th transmission interface (being not shown in Fig. 9) and second on first device The 4th receiving interface (receiving interface of the 4th probe messages being received in second device, be not shown in Fig. 9) on device it Between connection relation, i.e., the 4th transmission interface on first device connects with the 4th receiving interface in second device.
It should be noted that in the embodiment of the present invention, above-mentioned first device, second device and 3rd device can be respectively Each transmission interface and the distribution of each receiving interface in first device, second device and 3rd device is each for unique mark It is each in the mark of transmission interface and each receiving interface, such as first device as shown in Figure 9, second device and 3rd device The mark of a transmission interface and each receiving interface.
Optionally, in the embodiment of the present invention, the mark of the first receiving interface on above-mentioned first device can be this first The logical identifier of receiving interface;The mark of the second transmission interface on first device can be the logic mark of second transmission interface Know;The mark of third transmission interface on first device can be the logical identifier of the third transmission interface;In second device The mark for identifying the second receiving interface that can be for the logical identifier of first transmission interface, in second device of first transmission interface Know to be the logical identifier of second receiving interface;The mark of third receiving interface in 3rd device can be that the third connects Receive the logical identifier of interface.Wherein, the logical identifier of the logical identifier for each transmission interface and each receiving interface is retouched State the correlation of the logical identifier in the embodiment that specifically may refer to the above-mentioned device for configuring interface to the first transmission interface Description, details are not described herein again.
Illustratively, as shown in Figure 9, it is assumed that first device be identified as A, second device is identified as B, 3rd device Be identified as C, the first receiving interface on first device be identified as A1, the second transmission interface on first device is identified as Third transmission interface on A2, first device be identified as A3, the first transmission interface in second device is identified as B1, second The second receiving interface on device is identified as B2, and the third receiving interface in 3rd device is identified as C1, with reference to Fig. 9 The method of configuration interface provided in an embodiment of the present invention is illustratively illustrated.Wherein, it is connect respectively with each interface in Fig. 9 It receives and the mark of each transmission interface indicates each receiving interface and each transmission interface.
It is visited as shown in figure 9, first device sends second by the second transmission interface A2 on first device to second device Observe and predict text (second probe messages include first device identify A and the second transmission interface on first device mark A2, Second probe messages can be expressed as { A, A2 }).Second device receives the by the second receiving interface B2 in second device After the second probe messages that one device is sent by the second transmission interface A2 on first device, second device judge this second Whether the quantity of the mark in probe messages is equal to 5.In the case that the quantity of mark in second probe messages is less than 5, Second device adds respective identification in second probe messages and then by being not configured to bidirectional interface in second device Transmission interface sends the message after adding respective identification.Specifically, as shown in figure 9, second device can this On the mark B2 of the second receiving interface in two probe messages in addition second device, the mark B and second device of second device The first transmission interface mark B1, with generate the first probe messages (first probe messages can be expressed as A, A2, B2, B, B1}).Then second device sends first detection to first device by the first transmission interface B1 in second device again and reports Text.First device receives second device by the first receiving interface A1 on first device and is sent by first in second device After first probe messages that interface B1 is sent, first device judge the mark in first probe messages quantity whether etc. In 5, in the case that the quantity of the mark in first probe messages is equal to 5 (such as first probe messages A, A2, B2, B, B1 } in the quantity of mark be equal to 5), first device detect in first probe messages first identifies whether and the first dress The mark set is identical, first mark in first probe messages it is identical with the mark of first device (such as First mark A in first probe messages { A, A2, B2, B, B1 } is identical as the mark A of first device), first device can To configure the second transmission interface A2 on the first receiving interface A1 and first device on first device as a bidirectional interface.It can To understand, the receiving interface A4 on first device can also receive second device and be sent by the transmission interface B3 in second device Probe messages (being properly termed as the 5th probe messages below, the 5th probe messages can be expressed as { A, A2, B2, B, B3 }), And since first device determines that the quantity of the mark in the 5th probe messages is equal to 5 and the 5th in probe messages First mark is identical as the mark of first device, therefore first device can configure the first receiving interface on first device The receiving interface A4 on the second transmission interface A2 and first device on A1, first device is a bidirectional interface.By above-mentioned Process, first device can be according to the practical connections between each interface on each interface and other devices on first device (such as bandwidth demand when can be according to actual transmissions data) configures bidirectional interface to relationship on demand, i.e. first device can basis Configuration includes different on demand for each interface on first device and the practical connection relation between each interface on other devices The transmission interface of quantity and the bidirectional interface of receiving interface, in this way, using the method for configuration interface provided in an embodiment of the present invention Outflow and inbound traffics on the bidirectional interface of configuration can be different, such as the inbound traffics on the bidirectional interface can be more than this pair Outflow on interface, to which in outflow and the unbalanced application scenarios of inbound traffics, the transmission of the device can be improved The utilization rate of resource.
It should be noted that in the embodiment of the present invention, it is configured to all transmission interfaces of bidirectional interface and all connects Interface is received to connect with other same devices.For example, above-mentioned first device determines each interface on first device and other After the practical connection relation between each interface on device, first device can determine which specific transmission on first device Interface and which receiving interface are connect with other same devices, and then first device can be by these and other same devices The transmission interface and receiving interface of connection are configured to a bidirectional interface.If being appreciated that each interface on first device It is connect with other multiple devices, then first device can respectively connect the transmission interface and reception that are connect with other each devices Mouth is configured to different bidirectional interfaces, i.e. it is (each two-way to connect can to configure multiple bidirectional interfaces on the first device for first device Mouth can be used for first device and other same device transmission datas).
Optionally, in the embodiment of the present invention, in the case that the quantity of the mark in above-mentioned first probe messages is less than 5, First device can add mark A1, the first device of the first receiving interface on first device in first probe messages The mark A3 for identifying A and the third transmission interface on first device, to generate third probe messages.Then first device passes through Third transmission interface A3 on one device sends the third probe messages to 3rd device.3rd device passes through in 3rd device Third receiving interface C1 receives the third probe messages that first device is sent by the third transmission interface A3 on first device Later, 3rd device can continue to receive the processing method or first after the second probe messages according to above-mentioned second device Device receives the processing method after the first probe messages and handles the third probe messages, specifically may refer to above-mentioned as schemed Associated description in embodiment shown in 9, details are not described herein again.
Optionally, in the embodiment of the present invention, in the case that the quantity of the mark in above-mentioned first probe messages is less than 5, First device can add mark A1, the first device of the first receiving interface on first device in first probe messages The second transmission interface on mark A and first device is (at this time it is considered that the second transmission interface is to be configured on first device At a transmission interface of bidirectional interface) mark A2, to generate the 4th probe messages.Then first device passes through first device On the second transmission interface A2 send the 4th probe messages to second device.Second device is connect by second in second device After receiving the 4th probe messages of the interface B2 reception first devices by the second transmission interface A2 transmissions on first device, the Two devices can determine in the second receiving interface B2 in second device and the second device to the first device send this first First transmission interface B1 of probe messages is configurable to a bidirectional interface.
Optionally, in the embodiment of the present invention, due to the originally transmitted original probe messages of first device (such as above-mentioned second Probe messages) it can determine that there is direct connection relational in first device and second device or first device and 3rd device Interface, then first device further according to these with direct connection relational interfaces configuration first devices on corresponding transmission interface It is bidirectional interface with receiving interface, therefore first mark in above-mentioned first probe messages is different from the mark of first device In the case of (indicate that the original probe messages of the first probe messages are not the originally transmitted probe messages of first device, i.e., this The quantity of mark in one probe messages has reached 5, but first probe messages are not used to first device and determine Connection relation on one device on each interface and other devices between each interface), first device can abandon this and first visit Observe and predict text.
It is appreciated that after receiving probe messages due to each device (such as above-mentioned first device and second device), such as The quantity of mark in the fruit probe messages is less than 5, then the device will continue to generate new probe messages, and passes through the dress It sets and is also not configured to the probe messages that the transmission interface of bidirectional interface forwards this new to other devices, so in other devices When being connect by multiple receiving interfaces on other devices between the device, other devices can be enable to pass through this Multiple receiving interfaces on other devices receive corresponding probe messages, to which other devices can will be on other devices Several receiving interfaces and several transmission interfaces are configured to a bidirectional interface.For example, as shown in figure 9, due to first device After sending probe messages to second device by the second transmission interface A2 on first device, first device can pass through first The receiving interface A4 on the first receiving interface A1 and first device on device is respectively received the different of second device transmission Probe messages, therefore first device can connect the first receiving interface A1 on first device, the second transmission on first device Receiving interface A4 on mouth A2 and first device is configured to a bidirectional interface.
Optionally, in the embodiment of the present invention, first device receives the probe messages (such as above-mentioned the of second device transmission One probe messages and the 4th probe messages) after, first device can determine each interface and the second dress on first device first Set the connection relation between the corresponding interface.For example, as shown in figure 9, first device can determine that first on first device connects It receives interface A1 to connect with the first transmission interface B1 in second device, the second transmission interface A2 on first device and second device On the second receiving interface B2 connections and receiving interface A4 on the first device and transmission interface B3 in second device connect It connects.Wherein, the first transmission interface B1 in the first receiving interface A1 on first device and second device, the on first device Two transmission interface A2 and the second receiving interface B2 in the second device and receiving interface A4 on first device and second device On transmission interface B3 between relationship can be expressed as { A<-->B(A1<--B1)(A2-->B2)(A4<--B3)}.First dress After setting the connection relation on determining first device on each interface and second device between the corresponding interface, first device can root Determine which transmission interface and which receiving interface can be configured to a bidirectional interface on first device according to the connection relation, so Afterwards first device again by first device these transmission interfaces and receiving interface be configured to a bidirectional interface.
In the embodiment of the present invention, first device determines on first device on each interface and second device between the corresponding interface Connection relation after, which can be sent to second by first device by the second transmission interface on first device Device continues to lead to so that second device can also learn to the connection relation in this way, receiving first device in second device When crossing on first device the probe messages for the transmission interface transmission for being not configured to bidirectional interface, second device can determine the second dress Set which specific transmission interface is connected with first device, has been configured to which second device can directly select in second device Any one transmission interface at bidirectional interface (bidirectional interface connected with first device) is corresponding to first device transmission Probe messages, so first device receive second device transmission the probe messages after, first device can determine first It is not configured to the connection relation between correspondingly received interface on the transmission interface and second device of bidirectional interface on device, and by The transmission interface receiving interface corresponding on first device that bidirectional interface is not configured on one device (receives second device hair The receiving interface for the probe messages sent) it is configured to a bidirectional interface.And so on, each device can repeat above-mentioned Process, until transmission interface and receiving interface all on each device is each configured to bidirectional interface, the configuration of interface at this time Process is completed.
Optionally, in the embodiment of the present invention, if be configured on some device in the transmission interface group of bidirectional interface Receiving interface in transmission interface or receiving interface group is deleted that (i.e. the transmission interface is no longer the hair of the composition bidirectional interface Send the transmission interface in interface group or the receiving interface no longer and be the reception in the receiving interface group for forming the bidirectional interface to connect Mouthful), then the device can notify other devices delete preserved on other devices with the transmission interface or the receiving interface Connection relation between the receiving interface or transmission interface of connection, so can make other devices update phase thereon in real time The connection relation between the corresponding interface on interface and the device is answered, so that other devices can accurately use thereon accordingly Transmission interface to the device transmission data so that data can be transmitted correctly.
Illustratively, in the embodiment of the present invention, it is assumed that the first receiving interface on first device is deleted, then due to the The first receiving interface on one device is connected with the first transmission interface in second device, therefore first device can notify second Device delete the first transmission interface on the first receiving interface and second device in second device on the first device that preserves it Between connection relation.Specifically, the method for configuration interface provided in an embodiment of the present invention can also include following S114- S117。
S114, first device send a notification message to second device, and the notification message is for notifying second device to delete the Connection between the first transmission interface on the first receiving interface on the first device preserved in two devices and second device is closed System.
S115, second device receive the notification message that first device is sent.
S116, second device device to first device send confirmation message, the confirmation message for confirm second device at Work(receives the notification message.
S117, first device receive the confirmation message that second device is sent.
It is appreciated that in the embodiment of the present invention, after the first interface interface on first device is deleted, due to the first dress The first receiving interface set is connected with the first transmission interface in second device, therefore first device can also delete the first dress Set the connection relation between the first transmission interface on the first receiving interface on the first device learnt and second device.The When two devices send confirmation message to first device, since the first receiving interface on first device is deleted, the First is removed in two devices can be by connecting with first device and forming bidirectional interface transmission interface group in second device An any other transmission interface except transmission interface sends confirmation message to first device, to so that first device energy Enough it is successfully received the confirmation message.
The method of configuration interface provided in an embodiment of the present invention, since each device can be known automatically by executing this method It is not configured to the transmission interface and receiving interface of bidirectional interface thereon, and the transmission of bidirectional interface will be not configured to thereon automatically Interface and receiving interface, which are configured to bidirectional interface, (not only with transmission data but also can receive the interfaces of data, and configure in pairs Receiving interface in transmission interface and receiving interface group into the transmission interface group of interface and the same terminal device), therefore The quantity that may be implemented to form the transmission interface of each bidirectional interface is different with the quantity of receiving interface, i.e., composition is each two-way connects The quantity of transmission interface and the quantity of receiving interface of mouth can on demand be configured according to the practical connection relation of these interfaces, so Outflow and inbound traffics on bidirectional interface provided in an embodiment of the present invention can be different, such as the inbound traffics on the bidirectional interface The outflow that can be more than on the bidirectional interface, in outflow and the unbalanced application scenarios of inbound traffics, improve The utilization rate of the transfer resource of the device.
Illustratively, when each device transmits video traffic, since the inbound traffics on the device are typically much deeper than the dress The outflow set, i.e. outflow on the device and inbound traffics are usually unbalanced, therefore are adopted in the device for configuring interface When transmitting video traffic with bidirectional interface provided by the present application, inbound traffics of the device on the bidirectional interface can be more than the dress The outflow on the bidirectional interface is set, the utilization rate of the transfer resource of the device can be so improved.
The angle of interaction is to side provided in an embodiment of the present invention between the above-mentioned mainly device from each for configuring interface Case is described.It is understood that each device for configuring interface, first device as escribed above or second device Deng in order to realize above-mentioned function, it comprises execute the corresponding hardware configuration of each function and/or software module.Art technology Personnel should be readily appreciated that, unit and algorithm steps described in conjunction with the examples disclosed in the embodiments of the present disclosure, this Inventive embodiments can be realized with the combining form of hardware or hardware and computer software.Some function actually with hardware still Computer software drives the mode of hardware to execute, and depends on the specific application and design constraint of technical solution.Professional skill Art personnel can use different methods to achieve the described function each specific application, but this realization should not be recognized To exceed scope of the present application.
The embodiment of the present invention can be according to above method example to the dress provided in an embodiment of the present invention for configuring interface The division for carrying out function module such as set, for example, can correspond to each function divides each function module, it can also be by two or two A above function is integrated in a processing module.The form that hardware had both may be used in above-mentioned integrated module is realized, also may be used It is realized in the form of using software function module.It should be noted that being schematic to the division of module in the embodiment of the present invention , only a kind of division of logic function, formula that in actual implementation, there may be another division manner.
In the case where dividing each function module using corresponding each function, Figure 10 shows that the embodiment of the present invention provides For configure interface device a kind of possible structural schematic diagram, as shown in Figure 10, which may include:Receiving module 30, detection module 31 and configuration module 32.Receiving module 30 can be used for supporting the device to execute the in above method embodiment The S106 and S117 that one device executes;Or S102, S115 and S112 of second device execution ';Or 3rd device execution S112;Detection module 31 can be used for supporting the device execute above method embodiment in first device execute S107 and S108;Or the S103 that second device executes;Configuration module 32 can be used for supporting the device to execute in above method embodiment The S109 and S113 that first device executes.Optionally, in conjunction with Figure 10, as shown in figure 11, which can also include sending module 33 and generation module 34.Sending module 33 can be used for supporting the device to execute what first device in above method embodiment executed S101, S111, S114 and S111 ';Or the S105 and S116 that second device executes;Generation module 34 can be used for supporting the dress Set the S110 and S110 ' for executing that first device executes in above method embodiment;Or the S104 that second device executes.Wherein, All related contents for each step that above method embodiment is related to can quote the function description of corresponding function module, This is repeated no more.
Using integrated unit, Figure 12 shows involved for configuring interface in above-described embodiment A kind of possible structural schematic diagram of device.As shown in figure 12, which may include:Processing module 40 and communication module 41. Processing module 40 can be used for the action to the device and carry out control management, for example, processing module 40 can be used for supporting the dress Set S107, S108, S109, S113, S110 and S110 for executing that first device executes in above method embodiment ';Or second The S103 and S104 that device executes, and/or other processes for techniques described herein.Communication module 41 can be used for propping up The communication of the device and other devices is held, such as communication module 41 can be used for supporting the device to execute in above method embodiment S101, S106, S111, S114, S117 and S111 that first device executes ';Or second device execute S102, S105, S115, S116 and S112 ';Or the S112 that 3rd device executes.Optionally, as shown in figure 12, which can also include depositing Store up module 42, the program code for storing the device and data.
Wherein, it (such as can be above-mentioned processor as shown in Figure 3 that processing module 40, which can be processor or controller, 20), such as can be central processing unit (central processing unit, CPU), general processor, Digital Signal Processing Device (digital signal processor, DSP), application-specific integrated circuit (application-specific integrated Circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other can Programmed logic device, transistor logic, hardware component or its arbitrary combination.It is may be implemented or executed in conjunction with the present invention Various illustrative logic blocks, module and circuit described in embodiment disclosure.Above-mentioned processor can also be to realize The combination of computing function, such as combined comprising one or more microprocessors, the combination etc. of DSP and microprocessor.Communicate mould Block 41 can be that transceiver, transmission circuit or communication interface etc. (such as can be above-mentioned interface 220 as shown in Figure 3, interface 221, interface 222 and interface 223).Memory module 42 can be that memory (such as can be above-mentioned memory as shown in Figure 3 21)。
When processing module 40 is processor, communication module 41 is interface, and when memory module 42 is memory, processor connects Mouth can be connected with memory by bus.Bus can be Peripheral Component Interconnect standard (peripheral component Interconnect, PCI) bus or expanding the industrial standard structure (extended Industry standard Architecture, EISA) bus etc..Bus can be divided into address bus, data/address bus, controlling bus etc..
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its arbitrary combination real It is existing.When being realized using software program, can entirely or partly realize in the form of a computer program product.The computer journey Sequence product includes one or more computer instructions.It is all or part of when loading and execute on computers the computer instruction Ground is generated according to the flow or function in the embodiment of the present invention.The computer can be all-purpose computer, special purpose computer, calculating Machine network or other programmable devices.The computer instruction can store in a computer-readable storage medium, or from one A computer readable storage medium is transmitted to another computer readable storage medium, for example, the computer instruction can be from one A web-site, computer, server or data center pass through wired (such as coaxial cable, optical fiber, Digital Subscriber Line (digital subscriber line, DSL)) mode or wireless (such as infrared, wireless, microwave etc.) mode be to another net Website, computer, server or data center's transmission.The computer readable storage medium, which can be computer, to be accessed Any usable medium is either including data storage devices such as one or more usable mediums integrated server, data centers. The usable medium can be magnetic medium (for example, floppy disk, disk, tape), optical medium (for example, digital video disk (digital video disc, DVD)) or semiconductor medium (such as solid state disk (solid state drives, SSD)) etc..
Through the above description of the embodiments, it is apparent to those skilled in the art that, for description It is convenienct and succinct, only the example of the division of the above functional modules, in practical application, can as needed and will be upper It states function distribution to be completed by different function modules, i.e., the internal structure of device is divided into different function modules, to complete All or part of function described above.The specific work process of the system, apparatus, and unit of foregoing description, before can referring to The corresponding process in embodiment of the method is stated, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module or The division of unit, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute Display or the mutual coupling, direct-coupling or communication connection discussed can be by some interfaces, device or unit INDIRECT COUPLING or communication connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) or processor execute described in each embodiment of the application The all or part of step of method.And storage medium above-mentioned includes:It is flash memory, mobile hard disk, read-only memory, random Access the various media that can store program code such as memory, magnetic disc or CD.
The above, the only specific implementation mode of the application, but the protection domain of the application is not limited thereto, it is any Change or replacement in the technical scope that the application discloses, should all cover within the protection domain of the application.Therefore, this Shen Protection domain please should be based on the protection scope of the described claims.

Claims (21)

1. a kind of device for configuring interface, which is characterized in that described device includes N number of transmission interface and M receiving interface;
N number of transmission interface forms X transmission interface group, and the M receiving interface forms Y receiving interface group, and the X is a At least one of at least one of transmission interface group transmission interface group and the Y receiving interface group receiving interface group form At least one bidirectional interface, in the quantity and receiving interface group that form the transmission interface in the transmission interface group of each bidirectional interface Receiving interface quantity it is different, and form the transmission interface and receiving interface in the transmission interface group of each bidirectional interface Receiving interface in group is connect with the same terminal device, and the terminal device is the device being connect with described device, described every A bidirectional interface sends and receives data for described device, wherein N, M, X and Y are positive integer, and X<N, Y<M.
2. the apparatus according to claim 1, which is characterized in that the transmission in the transmission interface group of the first bidirectional interface of composition Receiving interface in interface and receiving interface group is located on the same chip in described device, and first bidirectional interface is institute State any one bidirectional interface at least one bidirectional interface;
The transmission interface that described device is used in the transmission interface group by composition first bidirectional interface is filled to other Transmission Ether frame is set, the Ether frame includes the mark of the first transmission interface, and first transmission interface is other described dresses The transmission interface to the first receiving interface transmission data is set, first receiving interface is composition first bidirectional interface A receiving interface in receiving interface group.
3. the apparatus according to claim 1, which is characterized in that the transmission in the transmission interface group of the first bidirectional interface of composition Receiving interface in interface and receiving interface group is located on the different chips in described device, and first bidirectional interface is described Any one bidirectional interface at least one bidirectional interface;
Described device is used for one in the transmission interface group in data surface or control plane by forming first bidirectional interface A transmission interface sends Ether frame to other devices, and the Ether frame includes the mark of the first transmission interface, first hair It is the transmission interface on other described devices to the first receiving interface transmission data to send interface, and first receiving interface is composition A receiving interface in the receiving interface group of first bidirectional interface.
4. device according to claim 3, which is characterized in that
The Ether frame is physical layer operations management service PHY OAM Ether frames or Bridge Protocol Data Unit BPDU ether Frame.
5. device according to claim 1 or 2, which is characterized in that
Described device is chip.
6. a kind of forwarding unit, which is characterized in that include as described in claim 1 to 5 any one for configuring interface Device.
7. a kind of method of configuration interface, which is characterized in that including:
First device receives second device by the first receiving interface on the first device and passes through in the second device The first probe messages that first transmission interface is sent, include at least in first probe messages second device mark and The mark of first transmission interface, first probe messages are for determining first receiving interface and the first device On be not configured to relationship between the transmission interface of bidirectional interface;
In the case that the quantity of mark in first probe messages is equal to 5, the first device detection described first is visited Observe and predict first in text identify whether it is identical as the mark of the first device;
It is identical with the mark of the first device in described first mark, the first device configuration described first Receiving interface and the second transmission interface are a bidirectional interface, and second transmission interface is on the first device by described the The transmission interface of second mark instruction in one probe messages.
8. the method according to the description of claim 7 is characterized in that the first device passes through first on the first device Before receiving interface receives the first probe messages of the second device by the first transmission interface transmission in the second device, institute The method of stating further includes:
The first device sends second to the second device by second transmission interface on the first device and visits Text is observed and predicted, second probe messages include the mark of the mark and second transmission interface of the first device, described Second probe messages are for determining that the reception for being not configured to bidirectional interface on second transmission interface and the first device connects Relationship between mouthful;Wherein, first probe messages are described in the second device is added in second probe messages It is raw after the mark of the identifying of the second receiving interface in second device, the mark of the second device and first transmission interface At, second receiving interface is the receiving interface being connect with second transmission interface in the second device.
9. method according to claim 7 or 8, which is characterized in that the method further includes:
In the case that the quantity of mark in first probe messages is less than 5, the first device is in first detection The identifying of first receiving interface is added in message, the third on the mark of the first device and the first device is sent The mark of interface, to generate third probe messages, the third transmission interface be on the first device in 3rd device The transmission interface of third receiving interface connection, the third probe messages determine that the third connects for the 3rd device The relationship being not configured on mouth and the 3rd device between the transmission interface of bidirectional interface;
The first device sends the third probe messages by the third transmission interface to the 3rd device.
10. according to the method described in claim 7 to 9 any one, which is characterized in that the method further includes:
In the case that the quantity of mark in first probe messages is less than 5, the first device is in first detection The identifying of first receiving interface is added in message, the on the mark of the first device and the first device the 4th is sent The mark of interface, to generate the 4th probe messages, the 4th transmission interface is two-way to be had been configured on the first device Interface and the transmission interface being connect with the 4th receiving interface in the second device;
The first device sends the 4th probe messages by the 4th transmission interface to the second device, and described the Four probe messages determine the relationship between the 4th receiving interface and first transmission interface for the second device.
11. according to the method described in claim 7 to 10 any one, which is characterized in that first receiving interface is deleted, The method further includes:
The first device sends a notification message to the second device, and the notification message is for notifying the second device to delete Except the relationship between first receiving interface and first transmission interface preserved in the second device;
The first device receives the confirmation message that the second device is sent, and the confirmation message is for confirming second dress It sets and is successfully received the notification message.
12. according to the method described in claim 7 to 11 any one, which is characterized in that the method further includes:
In the case of identifying the mark difference with the first device at described first, the first device abandons described first Probe messages.
13. a kind of device for configuring interface, which is characterized in that including:
Receiving module passes through for receiving second device by the first receiving interface in described device in the second device The first probe messages that first transmission interface is sent, include at least in first probe messages second device mark and The mark of first transmission interface, first probe messages are for determining in first receiving interface and described device not The relationship being configured between the transmission interface of bidirectional interface;
Detection module, the quantity for the mark in first probe messages that the receiving module receives are equal to 5 In the case of, detect first in first probe messages identify whether it is identical as the mark of described device;
Configuration module, for detecting first mark situation identical as the mark of described device in the detection module Under, it is a bidirectional interface to configure first receiving interface and the second transmission interface, and second transmission interface is the dress It sets by the transmission interface of second mark instruction in first probe messages.
14. device according to claim 13, which is characterized in that described device further includes sending module;
The sending module leads to for receiving second device by the first receiving interface in described device in the receiving module It crosses before the first probe messages that the first transmission interface in the second device is sent, passes through described second in described device Transmission interface to the second device send the second probe messages, second probe messages include described device mark with The mark of second transmission interface, second probe messages are for determining in second transmission interface and described device not The relationship being configured between the receiving interface of bidirectional interface;Wherein, first probe messages are the second device described The identifying of the second receiving interface in the second device, the mark of the second device and described are added in second probe messages Generated after the mark of first transmission interface, second receiving interface be the second device on second transmission interface The receiving interface of connection.
15. device according to claim 14, which is characterized in that described device further includes generation module;
The generation module, the quantity for the mark in first probe messages that the receiving module receives are less than In the case of 5, the mark of first receiving interface, the mark of described device and described are added in first probe messages The mark of third transmission interface on device, to generate third probe messages, the third transmission interface be in described device with The transmission interface of third receiving interface connection in 3rd device;
The sending module is additionally operable to send the generation module generation to the 3rd device by the third transmission interface The third probe messages, the third probe messages determine the third receiving interface and described for the 3rd device The relationship being not configured in 3rd device between the transmission interface of bidirectional interface.
16. device according to claim 15, which is characterized in that
The generation module, the quantity for being additionally operable to the mark in first probe messages that the receiving module receives are small In the case of 5, the mark, the mark of described device and institute of first receiving interface are added in first probe messages The mark for stating the 4th transmission interface on device, to generate the 4th probe messages, the 4th transmission interface is in described device The transmission interface for having been configured to bidirectional interface and being connect with the 4th receiving interface in the second device;
The sending module is additionally operable to send the 4th detection report to the second device by the 4th transmission interface Text, the 4th probe messages are determined for the second device between the 4th receiving interface and first transmission interface Relationship.
17. according to the device described in claim 14 to 16 any one, which is characterized in that
The sending module is additionally operable to after first receiving interface is deleted, and sending notice to the second device disappears Breath, the notification message be used to notify the second device delete first receiving interface that is preserved in the second device and Relationship between first transmission interface;
The receiving module is additionally operable to receive the confirmation message that the second device is sent, and the confirmation message is for confirming institute It states second device and is successfully received the notification message.
18. according to the device described in claim 13 to 17 any one, which is characterized in that
The configuration module is additionally operable to detect first mark in the detection module different from the mark of described device In the case of, abandon first probe messages that the receiving module receives.
19. a kind of device for configuring interface, which is characterized in that including processor and memory;
The memory is for storing computer instruction, and when described device is run, the processor executes the memory and deposits The computer instruction of storage, so that the processor executes the configuration interface as described in claim 7 to 12 any one Method.
20. a kind of computer readable storage medium, which is characterized in that including computer instruction, when the computer instruction with When being run on the device for configuring interface so that the configuration that described device executes as described in claim 7 to 12 any one connects The method of mouth.
21. a kind of data center systems, which is characterized in that including forwarding unit as claimed in claim 6.
CN201710213500.7A 2017-04-01 2017-04-01 Method, device, forwarding equipment and system for configuring interface Expired - Fee Related CN108667645B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710213500.7A CN108667645B (en) 2017-04-01 2017-04-01 Method, device, forwarding equipment and system for configuring interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710213500.7A CN108667645B (en) 2017-04-01 2017-04-01 Method, device, forwarding equipment and system for configuring interface

Publications (2)

Publication Number Publication Date
CN108667645A true CN108667645A (en) 2018-10-16
CN108667645B CN108667645B (en) 2020-07-28

Family

ID=63783817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710213500.7A Expired - Fee Related CN108667645B (en) 2017-04-01 2017-04-01 Method, device, forwarding equipment and system for configuring interface

Country Status (1)

Country Link
CN (1) CN108667645B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1589440A (en) * 2001-10-10 2005-03-02 高通股份有限公司 Multiple-interface port multiplexer
CN1725761A (en) * 2005-06-10 2006-01-25 杭州华为三康技术有限公司 Method of implementing link aggregation of network equipment
CN102638589A (en) * 2012-04-12 2012-08-15 北京星网锐捷网络技术有限公司 Determining method of corresponding connection relation of channels, as well as related connecting ends and system
CN103718379A (en) * 2013-03-27 2014-04-09 华为技术有限公司 Multi-frequency active antenna
CN103973554A (en) * 2013-01-29 2014-08-06 华为技术有限公司 Routing method, routing system and related equipment
CN104486211A (en) * 2014-12-09 2015-04-01 深圳视爵光旭电子有限公司 Data frame routing device and LED (Light Emitting Diode) display control system
CN106302071A (en) * 2015-05-29 2017-01-04 华为技术有限公司 A kind of adapter, the network equipment and the method for port configuration

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1589440A (en) * 2001-10-10 2005-03-02 高通股份有限公司 Multiple-interface port multiplexer
CN1725761A (en) * 2005-06-10 2006-01-25 杭州华为三康技术有限公司 Method of implementing link aggregation of network equipment
CN102638589A (en) * 2012-04-12 2012-08-15 北京星网锐捷网络技术有限公司 Determining method of corresponding connection relation of channels, as well as related connecting ends and system
CN103973554A (en) * 2013-01-29 2014-08-06 华为技术有限公司 Routing method, routing system and related equipment
CN103718379A (en) * 2013-03-27 2014-04-09 华为技术有限公司 Multi-frequency active antenna
CN104486211A (en) * 2014-12-09 2015-04-01 深圳视爵光旭电子有限公司 Data frame routing device and LED (Light Emitting Diode) display control system
CN106302071A (en) * 2015-05-29 2017-01-04 华为技术有限公司 A kind of adapter, the network equipment and the method for port configuration

Also Published As

Publication number Publication date
CN108667645B (en) 2020-07-28

Similar Documents

Publication Publication Date Title
US9288120B2 (en) Data center bridging network configuration and management
EP3182648B1 (en) Method, apparatus and system for implementing software-defined networking (sdn)
CN102918808B (en) The method of transfer of virtual LAN Information in the discovery of phantom station interface and configuration protocol
CN106664261B (en) A kind of methods, devices and systems configuring flow entry
CN104468358B (en) The message forwarding method and equipment of the distributed virtual switch system
US8718061B2 (en) Data center network system and packet forwarding method thereof
CN104104570B (en) Aggregation processing method in IRF systems and device
JP5654142B2 (en) Method for configuring network switches
CN107409066A (en) For automatic detection and the system and method for configuration server uplink network interface
CN105122747B (en) Control device and control method in SDN network
WO2015143610A1 (en) Service implementation method for nfv system, and communications unit
CN106664290A (en) Data transmission method and device for photoelectric hybrid network
CN106998302A (en) The distribution method and device of a kind of service traffics
JP2009534005A5 (en)
CN104580029B (en) Address distribution method and device
JP5866083B1 (en) Control method, control apparatus and processor in software definition network
CN104782104B (en) Scaled using the OTV of website virtual mac address
EP2820804A1 (en) Technique for bundling in link aggregation
CN104753707B (en) A kind of system maintenance method and the network switching equipment
CN104038446B (en) link discovery method and device
AU2014401914B2 (en) Storage system, method, and apparatus for processing operation request
CN105264837B (en) A kind of Transmission system of data message, transmission method and equipment
CN109982384A (en) Message forwarding method, device, the network equipment and medium
CN110417687A (en) A kind of message sends and receives method and device
CN104394075B (en) A kind of method and apparatus of message transmissions

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200728