CN110536187A - Forward the method and access layer exchange device of data - Google Patents

Forward the method and access layer exchange device of data Download PDF

Info

Publication number
CN110536187A
CN110536187A CN201810515031.9A CN201810515031A CN110536187A CN 110536187 A CN110536187 A CN 110536187A CN 201810515031 A CN201810515031 A CN 201810515031A CN 110536187 A CN110536187 A CN 110536187A
Authority
CN
China
Prior art keywords
exchange device
port
access layer
layer exchange
target
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
CN201810515031.9A
Other languages
Chinese (zh)
Other versions
CN110536187B (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 CN201810515031.9A priority Critical patent/CN110536187B/en
Publication of CN110536187A publication Critical patent/CN110536187A/en
Application granted granted Critical
Publication of CN110536187B publication Critical patent/CN110536187B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0005Switch and router aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0073Provisions for forwarding or routing, e.g. lookup tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/009Topology aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This application provides a kind of methods for forwarding data, applied to access layer exchange device, in the method, first access layer exchange device receives the first data packet by target second port, first data packet carries the first identifier for being used to indicate the second access layer exchange device, wherein, second access layer exchange device is connect with the destination server of first data packet, to, the first access layer exchange device can be according to first identifier, determine the target first port being connected via the core layer exchange device with the second access layer exchange device, in turn, the first data packet can be sent to the second access layer exchange device via the core layer exchange device by target first port, therefore, the instruction for being not necessarily based on Centralized Controller determines the port for sending first data packet, it can be improved access layer exchange device forwarding number According to performance.

Description

Forward the method and access layer exchange device of data
Technical field
This application involves the communications fields, and set more particularly, to a kind of method for forwarding data and access layer exchange It is standby.
Background technique
Traditional data center is that multiple servers are linked together by fixed network topology structure, server it Between by access-layer switch, polymerization layer switch and core layer switch carry out data transmission.But each pair of server Between data traffic it is uneven, cause in network topology structure transmit data link utilization rate there are lacks of uniformity.
In order to solve to transmit the lack of uniformity of data link utilization rate in network topology structure, a kind of forwarding data are proposed Method introduces core layer optical switch, changes network topology structure in real time by optical switched technology.By free transfer data link On bandwidth, be transferred in busy transmission data link.
But the method for forwarding data in the prior art, the complete base of forwarding of data in the handoff procedure of network topology structure In Centralized Controller processing speed, lead to the performance decline that data are forwarded in network topology structure handoff procedure.Therefore how to mention The performance that layer exchange device forwarding number evidence is accessed in the method for height forwarding data, becomes urgent problem to be solved.
Summary of the invention
The application provides the method and access layer exchange device of a kind of forwarding data, can be improved access layer exchange device and turns Send out the performance of data.
In a first aspect, providing a kind of method for forwarding data, it is applied to access layer exchange device, the access layer exchange Equipment includes multiple first ports and at least one second port, and the first port is for connecting core layer exchange device, institute Second port is stated for connecting server characterized by comprising the first access layer exchange device passes through target second port, The first data packet is received from first server, and first data packet carries first identifier, and the first identifier is used to indicate the Two access layer exchange devices, the second access layer exchange device is the access layer exchange device being connected with second server, institute The destination server that second server is first data packet is stated, the target second port is first access layer exchange In at least one second port of equipment, the second port that is connected with the first server;The first access layer exchange Equipment determines target first port according to the first identifier, is exchanged by the target first port via the core layer Equipment sends first data packet to the second access layer exchange device, and the target first port is first access Layer exchange device phase is accessed via the core layer exchange device and described second in multiple first ports of layer exchange device First port even.
According to the method for the forwarding data of the embodiment of the present application, destination server connection is carried in the first data packet by making Second access layer exchange device identification information, according to this second access layer exchange device identification information forwarding data can Improve the performance of forwarding data.
Optionally, in some embodiments, above-mentioned first identifier can be the mark of the second access layer exchange device (Identify, ID) information.
With reference to first aspect, in a kind of implementation of first aspect, the method also includes: first access layer Switching equipment carries described the receive that the second access layer exchange device sends by the target first port When the information of one mark, the first mapping relations are established, first mapping relations are the first identifier and the target first The mapping relations of port;And the first access layer exchange device determines target first port packet according to the first identifier Include: the first access layer exchange device according to the first identifier and first mapping relations carried in the first data packet, Determine the target first port.
According to the method for the forwarding data of the embodiment of the present application, the mark by receiving the second access layer exchange device is believed Breath, determine establish the identification information and send data port mapping relations, can when receiving data packet according to Identification information and established mapping relations in data packet rapidly and accurately forward data packet.
With reference to first aspect and its above-mentioned implementation, in another implementation of first aspect, described first Access layer exchange device is established before the first mapping relations, the method also includes: the first access layer exchange device is deleted Second mapping relations, wherein second mapping relations are the mapping relations of the target first port and second identifier, described Second identifier is used to indicate third access layer exchange device, and the third access layer exchange device is exchanged with second access layer Equipment is different.
According to the method for the forwarding data of the embodiment of the present application, include first port in the first access layer exchange device with In the case where the mapping relations of second identifier, the mapping relations of first port and second identifier are first released, first port is resettled With the mapping relations of first identifier, it can guarantee the correctness of mapping relations.
It is alternatively possible to which above-mentioned mapping relations are stored in forwarding tables of data, the above process can be understood as the forwarding The update of tables of data.
With reference to first aspect and its above-mentioned implementation, in another implementation of first aspect, described first It accesses before layer exchange device the second mapping relations of deletion, the method also includes: the first access layer exchange device determines The intensity of first optical signal be less than or equal to second threshold, also, the intensity stabilization of the second optical signal be first threshold wherein, institute State the first optical signal be it is described first access layer exchange device by the target first port receive come from the third The optical signal of layer exchange device is accessed, second optical signal is that the first access layer exchange device passes through the target first The optical signal from the second access layer exchange device that port receives.
According to the method for the forwarding data of the embodiment of the present application, the optical signal that can be received according to target first port is strong Degree is determined through target first port access layer exchange device corresponding with the first access layer exchange device.
With reference to first aspect and its above-mentioned implementation, described to carry in another implementation of first aspect The information of the first identifier is the second data packet, and second data packet is generated by the second access layer exchange device.
According to the method for the forwarding data of the embodiment of the present application, the first access layer exchange device receives the process of first identifier It can be from the second access layer exchange device and receive the second data packet, and in second data packet include the first identifier, energy It is enough to increase an identification information on the basis of transmission of former data packet, increase the compatibility of data packet.
It should be understood that can also include other information in above-mentioned second data packet, the application be not intended to limit this.
With reference to first aspect and its above-mentioned implementation, in another implementation of first aspect, the method is also It include: the first access layer exchange device by the target first port, Xiang Suoshu second accesses layer exchange device and sends The information of third mark is carried, the third mark is used to indicate the first access layer exchange device.
According to the method for the forwarding data of the embodiment of the present application, the first access layer exchange device can be handed over to the second access layer Exchange device sends third mark, and the third mark is used to indicate the first access layer exchange device, can be the second access Layer exchange device provides the identification information of the first access layer exchange device, accesses layer exchange device to the first access layer convenient for second Switching equipment forwards data packet.
With reference to first aspect and its above-mentioned implementation, described to carry in another implementation of first aspect The information of third mark is third data packet, and the third data packet is generated by the first access layer exchange device.
According to the method for the forwarding data of the embodiment of the present application, the first access layer exchange device can be handed over to the second access layer Exchange device sends third mark, can be and generates third data packet, and third mark is carried in third data packet and is sent to second Access layer exchange device.
With reference to first aspect and its above-mentioned implementation, in another implementation of first aspect, first number According to packet further include: the 4th mark, the 4th mark are used to indicate the second server.
It further include the mark letter of destination server according to the method for the forwarding data of the embodiment of the present application, in the first data packet Breath, can accurately send data packets to destination server.
With reference to first aspect and its above-mentioned implementation, in another implementation of first aspect, by described Target first port sends first data packet to the second access layer exchange device via the core layer exchange device Before, the method also includes: the first access layer exchange device determines that the target first port is effective, the target the Single port is effectively that the first access layer exchange device is connect by what the target first port received from described second The light signal strength for entering layer exchange device stabilizes to first threshold.
According to the method for the forwarding data of the embodiment of the present application, before sending the first data packet, the exchange of the first access layer Whether the optical signal for the second access layer exchange device that equipment is received according to target first port reaches within the regular hour Stationary value determines that the target first port for sending first data packet is effective port.
Optionally, the second preset duration can make systemic presupposition.First threshold can be set to target first port and connect The optical signal of the second access layer exchange device received value constant in certain time length.
With reference to first aspect and its above-mentioned implementation, in another implementation of first aspect, the target Single port includes target optical port, and the target optical port is for connecting core layer optical switching device.
According to the method for the forwarding data of the embodiment of the present application, target first port includes target optical port, is used for and core Central layer optical switching device is connected.
Second aspect provides a kind of method for forwarding data, is applied to access layer exchange device, the access layer exchange Equipment includes multiple third ports and at least one the 4th port, and the third port is for connecting core layer exchange device, institute The 4th port is stated for connecting server characterized by comprising
Second access layer exchange device receives the first access layer exchange device via the core by target third port The first data packet that layer exchange device is sent, first data packet carry first identifier, and the first identifier is used to indicate institute The second access layer exchange device is stated, the target third port is in multiple third ports of the second access layer exchange device Via the core layer exchange device and the third port that is connected of the first access layer exchange device;Second access layer Switching equipment sends first data packet by the 4th port of target, to second server, and the second server is described The destination server of first data packet, the 4th port of target be it is described second access layer exchange device at least one the 4th The 4th port being connected in port, with the second server.
According to the method for the forwarding data of the embodiment of the present application, destination server connection is carried in the first data packet by making The identification information of second access layer exchange device can be mentioned according to the identification information forwarding data of the second access layer exchange device The performance of height forwarding data.
In conjunction with second aspect, in a kind of implementation of second aspect, the method also includes: second access layer By the target third port, Xiang Suoshu first accesses layer exchange device transmission and carries the first identifier switching equipment Information.
According to the method for the forwarding data of the embodiment of the present application, the second access layer exchange device can believe the mark of itself Breath is sent to the access layer exchange device of opposite end, can know the second access layer exchange device convenient for opposite end access layer exchange device Identification information.
It is described to carry in another implementation of second aspect in conjunction with second aspect and its above-mentioned implementation The information of first identifier is the second data packet, and second data packet is generated by the second access layer exchange device.
According to the method for the forwarding data of the embodiment of the present application, the second access layer exchange device sends the process of first identifier It can be and send the second data packet, and in second data packet include the first identifier, it can be on the basis that former data packet is transmitted One identification information of upper increase, increases the compatibility of data packet.
In conjunction with second aspect and its above-mentioned implementation, in another implementation of second aspect, the method is also Include: the second access layer exchange device by the target third port, receives the first access layer exchange device hair That send carries the information of the third mark, and the third mark is used to indicate the first access layer exchange device.
According to the method for the forwarding data of the embodiment of the present application, the first access layer exchange device can be handed over to the second access layer Exchange device sends third mark, and the third mark is used to indicate the first access layer exchange device, can be the second access Layer exchange device provides the identification information of the first access layer exchange device, accesses layer exchange device to the first access layer convenient for second Switching equipment forwards data packet.
It is described to carry in another implementation of second aspect in conjunction with second aspect and its above-mentioned implementation The information of the third mark is third data packet, and the third data packet is generated by the first access layer exchange device.
According to the method for the forwarding data of the embodiment of the present application, the first access layer exchange device can be handed over to the second access layer Exchange device sends third mark, can be and generates third data packet, and third mark is carried in third data packet and is sent to second Access layer exchange device.
In conjunction with second aspect and its above-mentioned implementation, in another implementation of second aspect, first number According to packet further include: the 4th mark, the 4th mark are used to indicate the second server.
It further include the mark letter of destination server according to the method for the forwarding data of the embodiment of the present application, in the first data packet Breath, can accurately send data packets to destination server, wherein the second access layer exchange device passes through the 4th port of target First data packet, which is sent to destination server, can be the mapping relations identified according to the 4th with the 4th port of target.
Passing through target in another implementation of second aspect in conjunction with second aspect and its above-mentioned implementation Third port, before receiving the first data packet from the first access layer exchange device, the method also includes: second access layer Switching equipment determines that the target third port is effective, and the target third port is effectively the second access layer exchange device Third is stabilized to by the light signal strength from the first access layer exchange device that the target third port receives Threshold value.
According to the method for the forwarding data of the embodiment of the present application, before receiving the first data packet, the exchange of the second access layer Equipment determines that the target third port for receiving first data packet is effective port.
In conjunction with second aspect and its above-mentioned implementation, in another implementation of second aspect, the target Three ports include target third optical port, for connecting core layer exchange device center central layer optical switching device.
According to the method for the forwarding data of the embodiment of the present application, target third port includes target third optical port, is used for It is connected with core layer optical switching device.
The third aspect provides a kind of access layer exchange device, which can be used to execute first party The operation of the first access layer exchange device in any possible implementation of face and first aspect.Specifically, access layer is handed over Exchange device includes that can be first for executing step described in above-mentioned first aspect or the corresponding component of function (means) First access layer exchange device of aspect.The step or function can be by software realization or hardware realizations, or pass through hard Part and software are in conjunction with realizing.
Fourth aspect provides a kind of access layer exchange device, which can be used to for executing the The operation of the second access layer exchange device in any possible implementation of two aspects and second aspect.Specifically, this connects Entering layer exchange device may include for executing step described in above-mentioned second aspect or the corresponding component of function (means).The step or function can be real in conjunction with coming by software realization or hardware realization, or by hardware and software It is existing.
5th aspect, provides a kind of access layer exchange device, including, processor, memory, the memory is for storing Computer program, the processor from memory for calling and running the computer program, so that the access layer exchange device The method for executing the forwarding data in first or second aspect in any possible implementation.
Optionally, the processor is one or more, and the memory is one or more.
Optionally, the memory can be integrated with the processor or the memory divides with processor From setting.
Optionally, which further includes transmitter (transmitter) and receiver (receiver).
In one possible design, a kind of access layer exchange device, including transceiver, processor and memory are provided. The processor is for controlling transceiver receiving and transmitting signal, and for storing computer program, which is used for from storage the memory The computer program is called and run in device so that the access layer exchange device execute first aspect or first aspect is any can The method being able to achieve in mode.
In another possible design, a kind of access layer exchange device, including transceiver, processor and storage are provided Device.The processor is for controlling transceiver receiving and transmitting signal, and for storing computer program, which is used for from depositing the memory The computer program is called and run in reservoir, so that the access layer exchange device executes second aspect or second aspect is any Method in possible implementation.
6th aspect, there is provided a system comprising above-mentioned access layer exchange devices.
7th aspect, provides a kind of computer program product, the computer program product includes: computer program (be referred to as code, or instruction), when the computer program is run so that computer execute above-mentioned first aspect or Method in second aspect in any possibility implementation.
Eighth aspect, provides a kind of computer-readable medium, and the computer-readable medium storage has computer program (be referred to as code, or instruction) when run on a computer so that computer executes above-mentioned first aspect or second Method in aspect in any possibility implementation.
9th aspect provides a kind of chip system, including memory and processor, and the memory is for storing computer Program, the processor from memory for calling and running the computer program, so that being equipped with the access of the chip system Layer exchange device executes the method in above-mentioned first aspect or second aspect in any possibility implementation.
The method of the forwarding data of the embodiment of the present application, access layer exchange device, by being connect according to what is carried in data packet The identification information for entering layer exchange device sends data packets to the access layer exchange device, can be improved access layer exchange device Forward the performance of data.
Detailed description of the invention
Fig. 1 is a kind of common network topology structure schematic diagram of data center;
Fig. 2 is the method schematic diagram that data are forwarded in a kind of flexible network topologies structure;
Fig. 3 is a kind of network topology structure schematic diagram;
Fig. 4 is another network topology structure schematic diagram;
Fig. 5 is the method schematic diagram that data are forwarded in a kind of flexible network topologies structure based on Centralized Controller;
Fig. 6 is a kind of applicable network topology structure schematic diagram of the method for forwarding data provided by the embodiments of the present application;
Fig. 7 is the applicable another network topology structure schematic diagram of the method for forwarding data provided by the embodiments of the present application;
Fig. 8 is a kind of schematic diagram of optical switching device;
Fig. 9 is the connection relationship diagram between the input port of optical switch matrix and output port;
Figure 10 is a kind of schematic diagram of edge switching equipment;
Figure 11 is a kind of annexation figure of optical switching device;
Figure 12 is the annexation figure of another optical switching device;
Figure 13 is a kind of Strength Changes schematic diagram of optical signal that edge switching equipment receiver receives;
Figure 14 is a kind of method schematic diagram for forwarding data provided by the embodiments of the present application;
Figure 15 is a kind of network topology schematic diagram for being applicable in forwarding data method provided by the embodiments of the present application;
Figure 16 is a kind of specific data packet format in the embodiment of the present application;
Figure 17 is another network topology schematic diagram for being applicable in forwarding data method provided by the embodiments of the present application;
Figure 18 is a kind of access layer exchange device schematic diagram in the embodiment of the present application;
Figure 19 is another access layer exchange device schematic diagram in the embodiment of the present application.
Specific embodiment
Below in conjunction with attached drawing, the technical solution in the application is described.
Fig. 1 is a kind of common network topology structure schematic diagram of data center.Including core layer switch 110, convergence 140 4 layer switch 120, access-layer switch 130 and server parts, are described in detail below this four parts.
Core layer switch 110 (including core layer switch 110a as shown in Figure 1 and core layer switch 110b) It is placed on the interchanger of core layer (network backbone part).Core layer switch should possess phase all using modular construction When the slot of quantity, there is powerful network extended capability.
Convergence layer switch 120 (including converging layer switch 120a as shown in Figure 1 to convergence layer switch 120d), It is the convergent point of more access-layer switch.Convergence layer switch is capable of handling all traffics from access layer, and provides To the uplink of core layer, therefore layer switch is converged compared with access-layer switch, need higher performance, less end Mouth and higher exchange rate.
Access-layer switch 130 (including access-layer switch 130a to access-layer switch 130h) as shown in Figure 1, It is the interchanger for allowing server to be connected to network.Therefore access-layer switch has low cost and high port density characteristic.It connects Entering layer switch is the most common interchanger, it is directly contacted with outer net, and use is most extensive, especially in general office, small The departments such as business department, multimedia making center, portal management center that type computer room and service handling are more concentrated.
Server 140 (H shown in Fig. 1 is expressed as server), the server in the embodiment of the present application can be user Equipment, access terminal, subscriber unit, subscriber station, movement station, mobile station, remote station, remote terminal, mobile device, user are whole End, terminal, wireless telecom equipment, user agent or user apparatus.Terminal device can also be cellular phone, wireless phone, meeting Words starting agreement (Session Initiation Protocol, SIP) phone, wireless local loop (Wireless Local Loop, WLL) it stands, personal digital assistant (Personal Digital Assistant, PDA), the hand with wireless communication function Holding equipment calculates equipment or is connected to other processing equipments of radio modem, mobile unit, wearable device, future Public Land Mobile Network network (the Public Land Mobile of terminal device or the following evolution in 5G network Network, PLMN) in terminal device etc., the embodiment of the present application does not limit this.
Server in the embodiment of the present application can also be for the network equipment with terminal equipment in communication, the network equipment It can be global system for mobile telecommunications (Global System of Mobile communication, GSM) system or CDMA Base station (Base Transceiver Station, BTS) in (Code Division Multiple Access, CDMA), It can be the base station in wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA) system (NodeB, NB) can also be the evolved base station (Evolutional NodeB, eNB or eNodeB) in LTE system, may be used also To be the wireless controller under cloud Radio Access Network (Cloud Radio Access Network, CRAN) scene, or should The network equipment can for relay station, access point, mobile unit, wearable device and the network equipment in future 5G network or The network equipment etc. in the PLMN network of the following evolution, the embodiment of the present application does not limit.
Traditional data center (Data center, DC) is substantially to pass through fixed topological structure for thousands of clothes Business device links together.Tree-root structure shown in FIG. 1 more than 3 grades is a kind of current data center commonly network topology structure.
As shown in Figure 1, server 140 constitutes the leaf node of tree-network topology structure, generally pass through 1 (Giga byte Per second, Gps) or 10Gbps rate connected with access-layer switch.
Access-layer switch is connected to polymerization layer switch by the port such as 40Gps of higher rate, polymerize layer switch Core layer switch is connected to by the port such as 100Gps of further higher rate.
In tree-network topology structure shown in Fig. 1 respective switch (including access-layer switch, polymerization layer switch with And core layer switch) learnt inside respective switch by medium access control (Media Access Control, MAC) It generates and forwards tables of data as shown in table 1 (for server A and server B data transmission shown in FIG. 1).It is every in table 1 One column element can be referred to as, and forward the transmission list item in tables of data.Only with the port 1 of access-layer switch 130a in table 1 For port 5, the forwarding tables of data in other interchangers is similar with shown in table 1, no longer illustrates one by one here.
Wherein, the method for combining forwarding data is discussed in detail the process of mac learning generation table 1, does not repeat here.
Table 1 forwards tables of data
Address information Send data packet port
MAC A/IP A Port 1
MAC B/IP B Port 5
After access-layer switch receives data packet, according to the target MAC (Media Access Control) address or purpose internet carried in data packet Agreement (Internet Protocol, IP) address lookup forwarding tables of data is to deliver a packet to corresponding transmission data Wrap port.
As shown in figure 1 server A to server B forward data packet, need by access-layer switch, convergence layer switch with And core layer switch one is sent with jumping, final data packet could be correctly transferred in server B.
If network topology structure remains unchanged, the MAC Address and IP address of server and respective switch configuration Constant, then in the forwarding tables of data on each access-layer switch, the corresponding port information of arbitrary address information is to maintain constant , the data packet that any one server is sent to another server in this expression network topology structure is in network topology knot Transmission path in structure is fixed.
But the flow and uneven that data are transmitted between each pair of server in network topology structure, and be real-time change 's.It will lead to the transmission data-link that data link utilization rate, especially core layer switch are transmitted in network topology structure in this way There is very big lack of uniformity in road utilization rate.
Certain transmission data link congestions and certain transmission data link are idle.In order to solve this transmission data link benefit With the lack of uniformity of rate, the efficiency of forwarding data is improved.Compared to the bandwidth for directly improving transmission data link, the prior art is proposed A method of forwarding data.Core layer optical switch is introduced, network topology structure is changed by optical switched technology in real time, it will be empty Bandwidth in spare time transmission data link is transferred in busy transmission data link.
Fig. 2 is the method schematic diagram that data are forwarded in a kind of flexible network topologies structure.Including core layer electricity interchanger 210, core layer optical switch 220,240 4 parts of access-layer switch 230 and server are described in detail below this four Part.
Core layer electricity interchanger 210 is a kind of concrete form of core layer switch, and core layer electricity interchanger includes slotting double The port of twisted wire.
Core layer optical switch 220 is another concrete form of core layer switch, and core layer optical switch includes light Module inserts the port of optical fiber.
Access-layer switch 230 (including access-layer switch 230a to access-layer switch 230d) as shown in Figure 2 Function is similar with access-layer switch 130 shown in Fig. 1, and which is not described herein again.
Server 240 (H shown in Fig. 2 is expressed as server) is similar with server 140 shown in Fig. 1, here not It repeats again.
It should be noted that convergence layer switch is not shown in Fig. 2, it can be understood as the side of the transmission of data involved in the application Method is not related to converging the improvement of layer switch.It therefore, no longer include the introduction of convergence layer switch in following narration.But Whether be includes converging layer switch to limit the protection scope of the application, spirit provided by the present application in network topology structure Forwarding the method for data can be applied in network topology structure living includes in the network topology structure for converge layer switch.
The access interface of each access-layer switch 230 as shown in Figure 2 connects server, and the first port of part is connected to On core layer electricity interchanger, the first port of part is connected on core layer optical switch.The access-layer switch 230 can also be with Referred to as edge switch.
The topology between access-layer switch can be changed by changing the connection relationship inside core layer optical switch Connection.
For example it is assumed that there is a large amount of data to need to pass between current time access-layer switch 1 and access-layer switch 2 It is defeated, and also there are a large amount of data to need to transmit between access-layer switch 3 and access-layer switch 4.
Then, core layer optical switch can be made to establish the state as shown in the block curve connection in Fig. 2 in 220 parts.
That is, be connected between the port 1 of core layer optical switch and the 2 of core layer optical switch, core layer optical switch It is connected between port 3 and the port of core layer optical switch 4.The equivalent topologies structure of network topology structure is as shown in Figure 3 at this time.
Meanwhile access-layer switch 1 will be sent to the data of access-layer switch 2, be sent to access-layer switch 1 Port 6;Access-layer switch 1 will be sent to the data of access-layer switch 3 Yu access-layer switch 4, be sent to access layer The port 5 of interchanger 1.
Access-layer switch 3 will be sent to the data of access-layer switch 4, be sent to the port of access-layer switch 3 6;Access-layer switch 3 will be sent to the data of access-layer switch 1 Yu access-layer switch 2, be sent to access layer exchange The port 5 of machine 3.
It can be transferred in this way to avoid mass data on core layer electricity interchanger, in order to avoid lead to the competing of core layer electricity interchanger It strives, while the number of forwarding data can also be reduced, reduce data propagation delay time end to end.
Further for example, rear afterflow rate changes so that access-layer switch 1 and access-layer switch 3 have a large amount of data to pass Defeated, access exchange 2 and access-layer switch 4 have mass data transmission.
Then, core layer optical switch can be made to establish the state as shown in the dashed curve connection in Fig. 2 in 220 parts.
That is, being connected between the port 1 of core layer optical switch and the port 3 of core layer optical switch, the exchange of core layer light It is connected between the port 2 of machine and the port 4 of core layer optical switch.The equivalent topologies structure of network structure is as shown in Figure 4 at this time.
Meanwhile access-layer switch 1 will be sent to the data of access-layer switch 3, be sent to access-layer switch 1 Port 6;Access-layer switch 1 will be sent to the data of access-layer switch 2 Yu access-layer switch 4, be sent to access layer The port 5 of interchanger 1.
Access-layer switch 2 will be sent to the data of access-layer switch 4, be sent to the port of access-layer switch 2 6;Access-layer switch 2 will be sent to the data of access-layer switch 1 Yu access-layer switch 3, be sent to access layer exchange The port 5 of machine 2.
As shown in above-mentioned Fig. 2-Fig. 4, suitably adjusting network topology structure by core layer optical switch be can be very good The utilization rate of improve data transfer link reduces data packet propagation delay time end to end.
But how to adjust network topology structure, while access-layer switch can quick sensing to new network topology knot Structure and the port for changing forwarding data are the critical issues in the method for flexible network topologies structural transmission data.
To solve the above-mentioned problems, propose that a kind of flexible network topologies structure based on Centralized Controller passes in the prior art The method of transmission of data.
Fig. 5 is the method schematic diagram that data are forwarded in a kind of flexible network topologies structure based on Centralized Controller.Including Six steps of S110-S160.
S110, access-layer switch or server carry out the statistics of data traffic, and data traffic is reported to concentration Controller.Wherein, access-layer switch or server can be multiple, not show that in Fig. 5.
S120, Centralized Controller receives the data traffic that access-layer switch or server report, according to the number reported The data traffic between each pair of access-layer switch is estimated according to flow information.
S130, Centralized Controller plan new network topology knot according to the data traffic between each pair of access-layer switch Structure.
S140, Centralized Controller issue instruction information to access-layer switch controller.Indicate the data that will be deleted The data packet transmitted on transmission link is sent on other available data transmission links.
For example, working as the network topology structure of network topology structure as shown in Figure 3, it is changed into network topology knot shown in Fig. 4 Structure.Port 6 not with access-layer switch 2 is connect by the port 6 of access-layer switch 1.Then, Centralized Controller notifies access layer Interchanger 1, purpose MAC/IP are that the data packet for the server that access-layer switch 2 connects cannot re-send to access-layer switch On 1 port 6, need to be sent on the port 5 of access-layer switch 1.
S150, Centralized Controller notice core layer optical switch controller establish new network topology structure.
For example, working as the network topology structure of network topology structure as shown in Figure 3, it is changed into network topology knot shown in Fig. 4 When structure.Centralized Controller notifies core layer optical switch controller by the shape of the block curve connection in 220 part shown in Fig. 2 State is changed to the state of dashed curve connection.
S160, Centralized Controller issue transmission table to access-layer switch controller, so that data packet is sent to new foundation Data transmission link on.
For example, Centralized Controller notifies access-layer switch 1 by the server that purpose MAC is that access-layer switch 3 connects Data packet be sent to the port 6 of access-layer switch 1.
From the above mentioned, access-layer switch, which carries out data packet transmission, is completed according to forwarding tables of data as shown in Table 1 's.Therefore when network topology structure changes, Centralized Controller needs to calculate quickly on each access-layer switch Which of forwarding tables of data sends list item and needs to update, and sends corresponding access for updated forwarding data table information On layer switch.
Since present virtual machine generally uses so that in network the quantity of MAC Address or IP address considerably beyond The quantity of server, when this causes network topology structure to change, the transmission list item for needing to update in forwarding tables of data is too many, Very big challenge is brought to Centralized Controller calculating speed.
Still further aspect access-layer switch controller receives need the transmission table information changed after, it is also necessary to by itself plus It is downloaded to hardware and sends engine, this usual loading procedure speed is very slow, about 1 millisecond of (ms)/item.Each network topology structure It when changing, needs to undergo long period of time, can just pass the data transmission link of data packet from legacy data Transmission link is switched to new data transmission chain road, will lead to overall performance of network decline during switching.
It is also possible that sending table using traditional distributed routing protocol update after network topology structure change.Using concentration Controller dispatches link circuit resource, rough process are as follows:
Firstly, each access-layer switch is by periodically executing, neighbours' discovery feature after network topology structure changes, Determine that the neighbours of the access-layer switch certain port have changed, to update the neighbor information of oneself.
For example, when the network topology structure shown in Fig. 2 becomes network topology structure shown in Fig. 3.Access layer exchange Machine 1 after a period of time, can detect the neighbours that the port 6 of interchanger 1 connects, become access by access-layer switch 2 Layer switch 3.
Then, oneself newfound neighborhood is broadcast to other interchangers by each interchanger, passes through neighbor information Interaction, each exchange opportunity obtains whole network topological structure.
Finally, each interchanger according to this whole network topological structure according to certain routing algorithm (for example, spanning tree Agreement (Spanning Tree Protocol, STP)) calculate new routing transmission table information.Hereafter the transmission of data packet is just Table can be sent according to new routing to carry out.
But the time that forwarding tables of data or routing transmission table consumption are updated in the above process is very long.
To solve the above-mentioned problems, the embodiment of the present application proposes a kind of forwarding data that can quickly update forwarding tables of data Method.Below with reference to Fig. 6-Figure 18 be discussed in detail the invention relates to forwarding data method.
Firstly, introduce the invention relates to the port of edge switching equipment be divided into 3 seed types:
Access interface: connecting the port of server, such as the port 1,2,3,4 of access-layer switch 1 in Fig. 2;
Optical port: connecting the port of optical switching device, such as the port 6 of access-layer switch 1 in Fig. 2;
Electric port: the port of electric switching equipment is connected, such as the port 5 of access-layer switch 1 in Fig. 2.
Wherein, edge switching equipment can be above-mentioned edge switch;Optical switching device can be above-mentioned core layer Optical switch;Electric switching equipment can be above-mentioned core layer electricity interchanger.
Fig. 6 is a kind of applicable network topology structure schematic diagram of the method for forwarding data provided by the embodiments of the present application.
The forwarding data method of the embodiment of the present application is suitable for DC optical switching network.This DC optical-fiber network can be such as figure Hybrid optical switching network shown in 6.It include electric switching equipment and optical switching device in the core layer of network.
It should be understood that the core layer in network system may include multiple electric switching equipment and optical switching device, in the application The quantity of electric switching equipment and optical switching device is not intended to limit.
Fig. 7 is the applicable another network topology structure schematic diagram of the method for forwarding data provided by the embodiments of the present application.
The forwarding data method of the embodiment of the present application is suitable for DC optical switching network.This DC optical-fiber network can be such as figure All optical networks shown in 7.It only include optical switching device in the core layer of network.
It should be understood that the core layer in network system may include multiple optical switching devices, light exchange is set in the application Standby quantity is not intended to limit.
In Fig. 6 and 2 kinds of network systems shown in Fig. 7.Optical switching device and access switching equipment are direct-connected, therefore access and hand over Exchange device is also edge switching equipment.
Fig. 6 and shown in Fig. 7, the hardware system and the prior art in network system are almost the same.It mainly include server Cluster;M (m > 1) a edge switching equipment;A optical switching device of j (j >=1);It may include multiple electric switching equipment;And collection The function of middle controller, each component is as follows:
Centralized Controller: function with it is above-mentioned introduce it is almost the same.Mainly reported according to edge switching equipment or server Data traffic, calculate the data traffic demand between each pair of edge switching equipment, then determined according to data traffic demand every The connection relationship of a optical switching device.That is planning network topological structure, then control again each optical switching device establish it is corresponding Connection.
Optical switching device: its function is introduced almost the same with above-mentioned core layer optical switch.Letter is done directly in area of light Number exchange, be equivalent to directly adopt optical fiber connection between some input port and some output port by optical switching device.
Optical switching device is discussed in detail below with reference to Fig. 8.
Fig. 8 is a kind of schematic diagram of optical switching device.As shown in figure 8, optical switching device specifically include that optical switch matrix and Light switching control module.
Light switching control module is used to talk with the Centralized Controller in network system.For example, receiving Centralized Controller Order.The order establishes corresponding connection relationship (such as Fig. 9 for controlling between the input port of optical switch matrix and output port Shown in connection relationship).Fig. 9 is the connection relationship diagram between the input port of optical switch matrix and output port.
Optical switch matrix can be realized using various ways, such as common microelectromechanical systems (Micro-electro Mechanical Systems, mems) technology, silicon light integrated technology etc..
Edge switching equipment: different from traditional electric switching equipment.Edge switching equipment is proposed using the embodiment of the present application Forwarding data method and carry out the transmission of data packet.
Server cluster: for DC data center data producing source.The data packet sent in conventional network system is tradition Ethernet data bag, it is main to carry source/destination MAC, source/destination IP address;And the data sent in the embodiment of the present application Packet needs to be transformed traditional Ethernet data, so that it is additionally carried source edge switching equipment and purpose edge and is exchanged and sets Standby id information, so that edge switching equipment can correctly forward data.
The application implements to relate generally to the improvement of above-mentioned edge switching equipment, and the application reality is discussed in detail below with reference to Figure 10 Apply the edge switching equipment in example.
Figure 10 is a kind of schematic diagram of edge switching equipment.Include:
Physical layer receiving processing module: the processing to data packet progress physical layer is received.
The each receiving port of physical layer receiving processing module real-time monitoring is in effective status or failure state simultaneously. When receiving port is optical port, then ID transmission table, and triggering are updated according to receiving port state change is monitored The transmission of Hello data packet.
Wherein, ID transmission table is used to indicate the sending port information of data packet, and Hello data include triggering the Hello number According to the identification information of the edge switching equipment of packet.
Entry data packet handing module: analyzing the type of the data packet received, identifies that the data packet received is Business data packet or Hello data packet.
Identification information is carried according in the data packet received simultaneously, corresponding forwarding tables of data can be updated.For example, connecing The data packet received is business packet, and the destination address of the source server and destination server in business packet including the business packet, According to the identification information, forwarding tables of data can be updated.The data packet received is Hello data packet, according to Hello data packet The identification information of the edge switching equipment of middle carrying can update ID transmission table.
ID sends table generation module: being the module that the embodiment of the present application newly increases for generating ID transmission table.With above-mentioned turn Hair tables of data cooperatively determines the port information of data packet.
Hello data-packet generation module: the module newly increased for the embodiment of the present application.When physical layer receiving module monitors When the state of some input port is from becoming effective in vain, then triggers Hello data-packet generation module and generate Hello data packet. The physical layer for being sent to corresponding output port sends processing module.Hello data packet, which is mainly used for informing to opposite equip., originally to be set Standby id information.
Next the specific form of edge switching equipment in the application presented hereinbefore analyzes optical switching device connection Relationship changes influence of the moment to the optical port in edge switching equipment.
As is illustrated by figs. 11 and 12, when the connection relationship of optical switching device becomes shown in Figure 12 as shown in Figure 11.Even It connects state switching leading edge switching equipment 1 and edge switching equipment 3 is directly connected to.It is equivalent to and is directly exchanged edge with optical fiber Equipment 1 and the directly docking of edge switching equipment 3 are got up, and switch back edge switching equipment 1 and edge switching equipment 2 in connection status It is directly connected to.It is equivalent to and is directly directly docked edge switching equipment 1 and edge switching equipment 2 with optical fiber.
The connection status handoff procedure of optical switching device can be equivalent to edge switching equipment 1 and edge switching equipment 3 The optical fiber of connection reconnects on edge switching equipment 2 after disconnecting, and only this process is more much faster than plug optical fiber manually, and one As even can may diminish to tens ns less than tens ms.
Therefore the intensity for the optical signal that the receiver Rx of edge switching equipment 1 is received is as shown in figure 13.When shown in T1 Between for optical switch matrix complete optical switching device connection status switching need time.It is exchanged within this time from edge The optical signal of equipment 3 disappears quickly, and becomes strong quickly from the exchange of the light of edge switching equipment 2.Once exchange is set from edge After standby 3 light signal strength dies down, the physical layer receiving module of the Rx of edge switching equipment 1 would not be worked normally, and claim this State is the failure state or down of port, and failure state can continue for some time, until the light from edge switching equipment 2 After the signal stabilization T2 time, the physical layer receiving module of the Rx of edge switching equipment 1 works normally again at this time, claims this state For the effective status or up of port.
Therefore when network topology structure is changed every time, the optical port of edge switching equipment can become from effective status For failure state, effective status is then become from failure state again, this change twice needs time be T1 and T2's and.
Wherein the duration of T1 is determined by the connection status switching time of optical switching device, this is used depending on its light clearing house Technology.And T2 refer to physical layer signal restore time, generally ms grades.The forwarding data proposed in the embodiment of the present application Method is exactly that this phenomenon is utilized.
T1 and T2 is specifically defined from the above mentioned, method that the forwarding data proposed in the embodiment of the present application are described below.
According to the application scenario diagram of Fig. 6 and Fig. 7 the embodiment of the present application provided, in network system as shown in Figure 6 and Figure 7 There are two types of change of direction for data exchange:
Data transmission between the first server connected below for same edge switching equipment, the method for forwarding data The influence of network topology structure change is not will receive.
It is for second the data transmission between the server that different edge switching equipments connect below, forwarding in this case The method of data is closely related with whether network topology structure changes.
Therefore, the method that still traditional forwarding data can be used for the first data transmission scenarios.For example, using table The port of forwarding tables of data confirmation forwarding data shown in 1, this transmission table are referred to as the second forwarding tables of data.
And for second of data transmission scenarios, the port of data will be forwarded using a kind of new forwarding tables of data confirmation, This transmission table is referred to as the first forwarding tables of data.
The method of forwarding data provided by the embodiments of the present application is discussed in detail below with reference to Figure 14.
Figure 14 is a kind of method schematic diagram for forwarding data provided by the embodiments of the present application.Including S1410 and S1420.It should The method of forwarding data can be applied to access layer exchange device, and the access layer exchange device includes multiple first ports and extremely A few second port, the first port is for connecting core layer exchange device, and the second port is for connecting server.
S1410, the first access layer exchange device receive the first data packet.
First access layer exchange device receives the first data packet by target second port, from first server, and described the One data packet carries first identifier, and the first identifier is used to indicate the second access layer exchange device, and second access layer is handed over Exchange device is the access layer exchange device being connected with second server, and the second server is the purpose of first data packet Server, the target second port for it is described first access layer exchange device at least one described second port in and institute State the second port that first server is connected.
It should be understood that the method for above-mentioned forwarding data can be applied to data center, the data center includes multiple services Device, multiple access layer exchange devices and at least one optical switching device, the access layer exchange device includes at least one light Port and at least one access interface, the optical port is for connecting the optical switching device, and the access interface is for connecting The server.For example, above-mentioned Fig. 6 or data center shown in Fig. 7.
Optionally, in some embodiments, above-mentioned first identifier can be the ID of the second access layer exchange device.
Optionally, in some embodiments, above-mentioned target second port can be the access of the first access layer exchange device Port.For example, the first access layer exchange device is edge switching equipment 1 shown in Fig. 6, first server is shown in Fig. 6 The H1 being connected with edge switching equipment 1, then target second port be Fig. 6 shown in edge switching equipment 1 port 1.
S1420, the first access layer exchange device send the first data packet.
The first access layer exchange device determines target first port, passes through the target according to the first identifier First port sends first data packet to the second access layer exchange device via the core layer exchange device, described Target first port is in multiple first ports of the first access layer exchange device via the core layer exchange device The first port being connected with the second access layer exchange device.
First access layer exchange device is handed over according to the first identifier carried in the data packet received via the core layer The second access layer exchange device that exchange device is indicated to the first identifier sends first data packet.
Second access layer exchange device receives the first access layer exchange device via the core by target third port The first data packet that layer exchange device is sent, the target third port are multiple thirds of the second access layer exchange device The third port being connected via the core layer exchange device with the first access layer exchange device in port.
Optionally, in some embodiments, the target first port includes target optical port, and target optical port is for connecting Core layer exchange device center central layer optical switching device is connect, the target third port includes target third optical port.
The second access layer exchange device sends first data to second server by the 4th port of target Packet, the second server are the destination server of first data packet, and the 4th port of target is second access In at least one the 4th port of layer exchange device, the 4th port that is connected with the second server.
For example, the first access layer exchange device is edge switching equipment 1 shown in Fig. 6, the second access layer exchange device For edge switching equipment 2 shown in Fig. 6, first server is the H1 being connected shown in Fig. 6 with edge switching equipment 1, the Two servers are the H1 being connected shown in Fig. 6 with edge switching equipment 2, then above-mentioned core layer exchange device is shown in Fig. 6 Optical switching device 1, target first port are the port O1 of edge switching equipment 1 shown in Fig. 6, and target third port is Fig. 6 Shown in edge switching equipment 2 port O1, the 4th port of target be Fig. 6 shown in edge switching equipment 2 port 1.
Optionally, in some embodiments, by the target first port via the core layer exchange device to Before the second access layer exchange device sends first data packet, the method also includes: first access layer is handed over Exchange device determines that the target first port is effective, and the target first port is effectively that the first access layer exchange device is logical It crosses the light signal strength from the second access layer exchange device that the target first port receives and stabilizes to the first threshold Value.
In the following, being introduced so that the target first port of the first access layer exchange device is target optical port as an example in conjunction with Figure 13 How to judge that target first port is effective.
For example, the first access layer exchange device detection target optical port is changed into effective status from failure state.
First access layer exchange device detection target optical port from failure state is changed into effective status, wherein described the One access layer exchange device is any one access layer exchange device in the multiple access layer exchange device, the target light Port is any one optical port of the first access layer exchange device.
Wherein, the effective status is that target optical port shown in Figure 13 has the light from the second access layer exchange device Signal strength indication be first threshold stablize the T2 time after, at this time first access layer exchange device Rx physical layer receiving module weight New to work normally, this state is referred to as the effective status of target optical port, claims the optical signal from the second access layer exchange device For the second optical signal;
The failure state is that the optical signal that target optical port shown in Figure 13 accesses layer exchange device from third is strong Degree dies down less than or equal to second threshold, and the physical layer receiving module of the Rx of the first access layer exchange device would not normal work Make, this state is referred to as the failure state of optical port, and the optical signal from third access layer exchange device is referred to as the first optical signal. Second access layer exchange device is different with third access layer exchange device.
It should be understood that the first access layer exchange device, the second access layer exchange device and third described herein connects Entering layer exchange device all can be edge switching equipment defined above.
For example, the physical layer receiving processing module of edge switching equipment 1 shown in working as 6 in figure monitors that edge exchange is set The state of standby 1 optical port Oj becomes effective status from failure state.Wherein, the failure state or effective status of optical port Oj It had been discussed in detail in Figure 13, which is not described herein again.
Optionally, in some embodiments, target optical port is detected from failure shape in the first access layer exchange device State is changed into before effective status, the method also includes: the first access layer exchange device detects the target optical port It is changed into the failure state from the effective status;In the case that the target optical port has forwarding data packet, described the One access layer exchange device stops sending the data packet by first optical port.
For example, the physical layer receiving processing module of edge switching equipment 1 shown in working as 6 in figure monitors that edge exchange is set Standby 1 optical port Oj is changed into the failure state from the effective status, and current edge switching equipment 1 passes through optical port Oj forwards data packet, the inlet flow rate management of the physical layer receiving processing module notice edge switching equipment 1 of edge switching equipment 1 Scheduler module stops data packet dispatching to optical port Oj.
Optionally, which can be sent by the electric port e1 of edge switching equipment 1.
Optionally, in some embodiments, the first access layer exchange device is by the target first port, to institute It states the second access layer exchange device and sends the information for carrying third mark, the third mark is used to indicate first access Layer exchange device.
For example, the physical layer receiving processing module of edge switching equipment 1 shown in working as 6 in figure monitors that edge exchange is set The state of standby 1 optical port Oj becomes effective status from failure state.Edge switching equipment 1 is handed over by optical port Oj to edge Exchange device 2 sends the information for carrying third mark, and edge switching equipment 2 is made to determine that edge switching equipment 1 will be counted with it According to transmission.
Optionally, in some embodiments, above-mentioned third mark can be the id information of edge switching equipment 1.
Optionally, in some embodiments, the information for carrying third mark is third data packet, the third number It is generated according to packet by the first access layer exchange device.
For example, the physical layer receiving processing module for working as edge switching equipment 1 shown in Fig. 6 monitors edge switching equipment The state of 1 optical port Oj becomes effective status from failure state.The physical layer receiving processing module of edge switching equipment 1 touches The Hello data-packet generation module of edge switching equipment 1 is sent out, the first Hello data packet is generated.It is wrapped in first Hello data packet Include the third mark.
It should be understood that above-mentioned first Hello data packet, can also include other messages, the application is not intended to limit this.
Optionally, in some embodiments, the first access layer exchange device is by the target first port, to institute It states the second access layer exchange device and repeatedly sends the third mark.
For example, above-mentioned Hello data-packet generation module can continuously generate the first Hello data packet.Hello data are contracted for fixed output quotas Hello data packet is sent processing module by physical layer and is sent to edge switching equipment 2 from optical port Oj by raw module.
It is set it should be understood that above-mentioned first access layer exchange device can be the arbitrary edge exchange of Fig. 6 or shown in fig. 7 Standby, above-mentioned second access layer exchange device can be in Fig. 6 or edge switching equipment shown in fig. 7 except above-mentioned first access layer Except switching equipment, arbitrary edge switching equipment.
Optionally, in some embodiments, the method also includes: the first access layer exchange device is by described When target first port receives the information for carrying the first identifier that the second access layer exchange device is sent, establish First mapping relations, first mapping relations are the mapping relations of the first identifier and the target first port;And The first access layer exchange device determines that target first port includes: that first access layer is handed over according to the first identifier Exchange device determines the target first end according to the first identifier and first mapping relations that carry in the first data packet Mouthful.
Optionally, in some embodiments, the information for carrying the first identifier is the second data packet, described the Two data packets are generated by the second access layer exchange device.
For example, edge switching equipment 1 shown in working as 6 in figure passes through the optical port O1 of edge switching equipment 1, edge is received The first identifier ID2 that switching equipment 2 is sent, the first identifier indicate that edge switching equipment 2, edge switching equipment 1 can be built The mapping relations of vertical optical port O1 and ID2 determine light end according to the mapping relations when in the data packet received including ID2 Mouth O1.The mapping relations can be recorded in forwarding tables of data.
It should be understood that the first identifier ID2 that above-mentioned edge switching equipment 2 is sent is the optical port by edge switching equipment 2 The first identifier ID2 that O1 is sent, wherein the optical port O1 of edge switching equipment 2 is above-mentioned target third port.
Optionally, in some embodiments, it includes: in institute that the first access layer exchange device, which establishes the first mapping relations, The first access layer exchange device is stated to establish before the first mapping relations, the method also includes: the first access layer exchange is set It is standby to delete the second mapping relations, wherein second mapping relations are the mapping pass of the target first port and second identifier System, the second identifier are used to indicate third access layer exchange device, and the third access layer exchange device connects with described second It is different to enter layer exchange device.
Before the first access layer exchange device deletes the second mapping relations, the method also includes: described first Access layer exchange device determines that the intensity of the first optical signal is less than or equal to second threshold, also, the intensity of the second optical signal is steady It is set to first threshold wherein, first optical signal is that the first access layer exchange device is connect by the target first port The optical signal from third access layer exchange device received, second optical signal are that the first access layer exchange is set The standby optical signal from the second access layer exchange device received by the target first port.
In order to understand the establishment process of above-mentioned first mapping relations, exchanged below using the first access layer exchange device as edge Equipment 1, the second access layer exchange device are edge switching equipment 2, and it is edge switching equipment 3 that third, which accesses layer exchange device,.And First access layer exchange device sends third mark to the second access layer exchange device by target first port and carries first In Hello data packet, the second access layer exchange device sends first to the first access layer exchange device by target first port Mark carries in the 2nd Hello data packet, wherein first identifier is the id information of the second access layer exchange device, third mark For knowing is the first id information for accessing layer exchange device, and the first mapping relations are recorded in ID transmission table, being described in detail should Process:
The physical layer receiving processing module of edge switching equipment 1 monitors that the state of target first port becomes down from up When, that is, the first access layer exchange device receives the light letter that the third accesses layer exchange device by the target first port Number, the light signal strength of the third access layer exchange device is less than or equal to second threshold, execute work below:
Step 1: notice inlet flow rate manage and dispatch module stops data packet dispatching to target first port;
Step 2: updating ID shown in table 2 and send table, i.e., sending ID and deleting all outlet ports information in table is target first All list items in port;
For example, the ID of edge switching equipment 1 sends table as shown in table 2-A when network system is as shown in figure 11, once network It is switched to shown in Figure 12 as shown in Figure 11, then the target first port of edge switching equipment 1 can be become down from up, at this time will List item is sent shown in deletion table 2-A.
Table 2-A ID sends table
Purpose edge switching equipment ID Send data packet port
The ID of edge switching equipment 3 Target first port
Table 2-B ID sends table
Purpose edge switching equipment ID Send data packet port
The ID of edge switching equipment 2 Target first port
Step 3: target first port being waited to become up from down.
It should be understood that step 1 and not stringent successive of step 3 execute sequence, may be performed simultaneously, it can also be with step 2 elder generation It is executed in step 1.
When the physical layer receiving processing module of edge switching equipment 1 monitors that the state of target first port is become from down When up, that is, the first access layer exchange device receives second access layer by the target first port and exchanges The light signal strength of the optical signal of equipment, the second access layer exchange device stabilizes to first threshold, executes below step:
Step 1: triggering Hello data-packet generation module continuously generates the first Hello data packet, and by the first Hello number Processing module is sent by physical layer according to packet and is sent to edge switching equipment 2 from target first port;
Step 2: the entry data packet handing module of edge switching equipment 1 monitors whether to receive above-mentioned edge switching equipment Otherwise 2 the 2nd Hello data packets sent are continued waiting for if it is thening follow the steps 3.
Step 3: entry data packet handing module extracts the id information of edge switching equipment 2 in the 2nd Hello data packet.
Step 4: new transmission list item is added in the ID transmission table shown in table 2.The second edge exchange that step 3 is extracted Device id is filled into column shown in purpose edge switching equipment ID.Optical port j is filled into corresponding transmission data packet port institute The column shown.
For example, the ID transmission table of edge switching equipment 1 becomes table after network is switched to state shown in Figure 12 as shown in Figure 11 State shown in 2-B.
Optionally, step 5: 1 waiting time of edge switching equipment T, in waiting time T, edge switching equipment 1 are executed Target first port continue to continuously transmit the first Hello data packet.It can ensure that edge switching equipment 2 can be properly received To the first Hello data packet.Usual T can be set as ms.
Step 6: target first port stops sending the first Hello data packet, and notice inlet flow rate manage and dispatch module will Data dispatch is target first port.
Hello data packet is a kind of special control message in foregoing description, carries in message and sends the Hello data packet Edge switching equipment id information.It is mainly used for indicating the ID letter of local terminal edge switching equipment to end edges switching equipment Breath, so that end edges switching equipment can establish ID transmission table.The ID of edge switching equipment is edge switching equipment in network In unique identification, i.e., each edge switching equipment ID is different.
It should be understood that the id information of above-mentioned edge switching equipment can also pass through Centralized Controller by user configuration Uniformly automatically configured.Once each edge switching equipment saves corresponding id information with postponing.
In the method for forwarding data provided by the present application, in addition to above-mentioned ID transmission table can also be related in the prior art MAC send table, the product process that following is a brief introduction of MAC transmission table includes:
Step 1: edge switching equipment judges whether this data packet is to pass through incoming end after receiving any one data packet What mouth received, following step is if it is continued to execute, is not otherwise operated.
Step 2: edge switching equipment extracts the source MAC that data packet carries.
For example, it is server A that edge switching equipment 1, which receives the source MAC that data packet carries from access interface 1, in Fig. 6 MAC Address, for example, source MAC is MAC A.
Step 3: judge source MAC MAC A, if can look in existing MAC transmission table in edge switching equipment It arrives, thens follow the steps four if found, if can not find execution step 5.
Step 4: the corresponding sending port information of source MAC MAC A is updated, i.e., is set as receiving by sending port The port of data packet, a mac learning terminate.
Step 5: sending the transmission list item that source MAC MAC A is added in list item in MAC, and corresponding sending port is The port of notebook data packet is received, then a mac learning terminates.
After edge switching equipment establishes correct MAC transmission table and ID transmission table, so that it may send table according to the two Forward data.
Below using the first access layer exchange device as edge switching equipment 1, the second access layer exchange device is edge exchange Equipment 2, the connected first server of the first access layer exchange device second server connected to the second access layer exchange device The first data packet is sent, and the first data packet carries first identifier, the first identifier is used to indicate the exchange of the second access layer and sets It is standby, for first identifier is the second access layer exchange device ID, the process that data are forwarded in the embodiment of the present application, packet is discussed in detail It includes:
Step 1: edge switching equipment 1 receives the first data packet that first server is sent by target second port.
Step 2: the entry data packet handing module of edge switching equipment 1 receives the first data packet, extracts the first data packet In target MAC (Media Access Control) address and purpose edge switching equipment ID;
Step 3: judge purpose edge switching equipment ID whether be edge switching equipment 1 ID;If it is execute step 4, It is no to then follow the steps 5;
Step 4: MAC transmission table being inquired according to purpose MAC and determines target first port;
Step 5: ID transmission table being inquired according to purpose edge switching equipment ID and determines target first port.
Step 6: edge switching equipment 1 sends the first data packet by target first port.
In order to make it easy to understand, providing two specific embodiments below with reference to Figure 15 and Figure 17 illustrates above-mentioned forwarding data Method.
Figure 15 is a kind of network for being applicable in and forwarding data method in flexible network topologies structure provided by the embodiments of the present application Topological schematic diagram.
When the topology of network becomes topology as shown in figure 15 from other states, edge switching equipment can be according to front The MAC transmission table provided generates scheme and ID transmission table generates scheme and generates MAC transmission table and ID transmission table.
For example, edge switching equipment 1 is obtained according to traditional mac learning method such as table 3 by its access interface 1,2 ... n Shown in MAC send table.
The MAC of 3 edge switching equipment 1 of table sends table
Server MAC Send data packet port
Server a MAC 1
Server e MAC 2
Server n MAC n
For same edge switching equipment 1 in state after optical switch 1 and optical switch 2 adjust, optical port O1 and O2 are logical It crosses its state change and generates ID transmission table as shown in table 4 according to the method for ID transmission table, specific process is just no longer heavy here It is multiple.
The ID of 4 edge switching equipment 1 of table sends table
Edge switching equipment ID Send data packet port
Ox3333 O1
Ox4444 O2
After MAC transmission table and ID transmission table determine, the method that tables are completed to forward data is sent according to the two.
It is described in detail so that server a, server b are communicated with server c as an example below with reference to Figure 10 and Figure 15.
Firstly, server a, which will transmit packets to server b or server a, will transmit packets to server c's Words.
The corresponding source MAC of data packet that server a is sent is the MAC Address of server a, and purpose MAC is respectively to service The MAC Address of device b and the MAC Address of server c.
Source edge switching equipment ID is the ID:0x1111 of edge switching equipment 1;Purpose edge switching equipment MAC is respectively The ID:0x2222 of the edge switching equipment 2 and ID:0x3333 of edge switching equipment 3.
Traditional data packet only includes purpose MAC and source MAC, and the data packet that server is sent in the embodiment of the present application is also taken Band purpose edge switching equipment ID and source edge switching equipment ID, the format of data packet are as shown in figure 16.
Figure 16 is a kind of specific data packet format in the embodiment of the present application.Include:
Outer layer Ethernet (information shared by purpose edge switching equipment ID, source edge switching equipment ID and outer layer Ethernet Length and type);
Internal layer Ethernet (length and type of information shared by purpose MAC, source MAC and internal layer Ethernet);
Data refer to the information that the needs in data packet are sent;
FCS verification: frame check sequence (Frame Check Sequence, FCS) verification judgement is that the transmission of data packet is no Mistake has occurred.
Step 1: when the entry data packet handing module of edge switching equipment 1 receives data packet, extracting in data packet Target MAC (Media Access Control) address and purpose edge switching equipment ID;Then step 2 is executed;
Step 2: entry data packet handing module judges whether purpose edge switching equipment ID is this edge switching equipment ID, it is no to then follow the steps 6 if it is thening follow the steps 3.
For example, the purpose edge switching equipment ID that server a is sent to server e data packet is edge switching equipment 1 ID then goes to step 3 execution.
For example, the purpose edge switching equipment ID that server a is sent to the data packet of server b or server c is not side The ID of edge switching equipment 1 then goes to step 6 execution.
Step 3: MAC being inquired according to the purpose MAC of data packet and sends table, there are the MAC to correspond to if MAC is sent in table Transmission list item, then follow the steps 4, it is no to then follow the steps 5.
Step 4: transmitting data to MAC transmission table to the first port that sets the goal.
Step 5: by data broadcasting to other all access interface in addition to the port.
Step 6: ID being inquired according to the purpose edge switching equipment ID of data packet and sends table, is somebody's turn to do if ID sends to exist in table The corresponding transmission list item of ID, thens follow the steps 7, no to then follow the steps 8.
For example, the purpose edge switching equipment ID that server a is sent to the data packet of server c is 0x3333, at edge There are corresponding transmission list item in the ID transmission table of switching equipment 1,7 are thened follow the steps;But as server a is sent to server b The purpose edge switching equipment ID of data packet be 0x2222, send in table in the ID of edge switching equipment 1 there is no corresponding List item is sent, thens follow the steps 8.
Step 7: sending target first port in ID transmission table for tables of data.
For example, the data packet that server a is sent to server c can be sent to the optical port O1 of edge switching equipment 1.
Step 8: according to the control information of data packet, for example, purpose MAC or source MAC, any combination of destination IP or source IP Select an electric port to send the data packet in the way of Hash.
For example, the data packet that server a is sent to server b can be sent to the electric port e1 of edge switching equipment.
Optionally, step 6 edge switching equipment 1, which can also be changed to abandon, changes data packet.
Optionally, there may be the path of a plurality of forwarding data between two edge switching equipments, this leads to ID transmission table In can have multiple transmission list items for the same ID, step 7 can be improved as follows in this case: according to data packet Information is controlled, for example, any combination of purpose MAC or source MAC, destination IP or source IP selects one of them in the way of Hash Optical port is used to forward data.
Core layer exchange device shown in Figure 15 includes electric switching equipment and optical switching device, below with reference to Figure 17 introduction When core layer exchange device only includes optical switching device, the method for forwarding data proposed in the application how is completed.
Figure 17 is another network topology schematic diagram for being applicable in forwarding data method provided by the embodiments of the present application.In Figure 17 Middle core layer switching equipment only includes optical switching device, this is resulted under certain network topology structures, certain two edge exchange Equipment can not be connected directly by optical switching device.
For example, edge switching equipment 1 and edge switching equipment 2 and edge switching equipment 4 are connected directly in Figure 17, edge It is not connected directly between switching equipment 1 and edge switching equipment 3.
Table generation/update method is sent according to above-mentioned ID, the ID transmission table that edge switching equipment 1 obtains is as shown in table 5.
For example, server a sends number if server a wants to communicate with server c under network topology structure shown in Figure 17 Source edge switching equipment ID according to packet is 0x1111, and purpose edge switching equipment ID is 0x3333.It is handed over when data packet reaches edge Side's hair of the forwarding data provided after exchange device 1 according to front, the ID inquired in edge switching equipment 1 send voting and determine forwarding number According to the port of packet, and at this time in the ID transmission table in edge switching equipment 1 not with the ID 0x3333 phase of edge switching equipment 3 Matched transmission list item can not then determine the port of forwarding data packet.
Simultaneously under network topology structure shown in Figure 17, core layer, cannot be by data packet from electric end without electric switching equipment Mouth is sent.
5 edge switching equipment 1ID of table sends table
Purpose edge switching equipment ID Send data packet port
Ox2222 O1
Ox4444 O2
For this problem, needs generation/update to ID transmission table to improve in the present embodiment, be presented as utilization Centralized Controller issues ID transmission table between not through edge switching equipment pair.Specific way are as follows:
Step 1: edge switching equipment or server carry out the statistics of data traffic, and data traffic is reported to concentration Controller;
Step 2: Centralized Controller receives the data traffic reported, estimates the data flow between each pair of edge switching equipment Amount;
Step 3: Centralized Controller plans new network topology structure according to the flow between each pair of edge switching equipment;
Step 4: Centralized Controller notice optical switching device establishes new network topology structure;
Step 5: Centralized Controller calculates determine cannot pass through the direct phase of optical switching device between which edge switching equipment Even, one or more of shortest paths are calculated between these edge switching equipments, and calculate corresponding ID transmission table and issue Onto corresponding edge switching equipment.
Step 6: edge switching equipment is added in ID transmission table after receiving transmission flow table.
For example, Centralized Controller is according to network topology structure shown in Figure 17.If server a wants logical with server c The data packet that edge switching equipment 1 needs to be sent to edge switching equipment 3, Ke Yixian can be calculated in letter, Centralized Controller Edge switching equipment 2, then the end O2 by edge switching equipment 2 are delivered a packet to by the port O1 of edge switching equipment 1 Mouth is sent to edge switching equipment 3, and then edge switching equipment 3 is finally sent the packet within according to the MAC Address in data packet To server c, the path of forwarding data shown in dotted line in Figure 17.
Centralized Controller also can choose in Figure 17 it is shown in solid forwarding data path, by edge switching equipment 4 into Row is sent.
No matter which transmitting path is selected, and Centralized Controller only needs to issue on ID transmission table to edge switching equipment 1.Cause This centralized control issues and the matched transmission list item of the ID of edge switching equipment 3, edge switching equipment 1 to edge switching equipment 1 It receives the ID that Centralized Controller issues and sends list item, added and sent in table in existing ID, then on edge switching equipment 1 ID transmission table will become as shown in table 6.
It should be noted that when there is the shortest path greater than 1 between the edge switching equipment pair that can not be gone directly, collection Middle control can be according to certain algorithms selection wherein shortest path, or a plurality of shortest path of selection, then according to choosing The one or more of path computations selected go out to need which edge switching equipment to issue ID transmission table and specific ID to Send list item information.
If Centralized Controller be non-through edge switching equipment to multilink has been selected after, it is likely that ID send There are multiple information for sending data packet port in table, can select one of port using hash algorithm at this time.
6 edge switching equipment of table, 1 ID sends table
Purpose edge switching equipment ID Send data packet port
Ox2222 O1
Ox4444 O2
Ox3333 O1/O2
Above in conjunction with the method that Fig. 1-Figure 17 describes forwarding data provided by the embodiments of the present application in detail, below with reference to figure Access layer exchange device provided by the embodiments of the present application is discussed in detail in 18 and Figure 19.
Figure 18 is a kind of access layer exchange device schematic diagram in the embodiment of the present application.Device 1800 can be used for realizing above-mentioned side Method described in method embodiment may refer to the explanation in above method embodiment.The access layer exchange device 1800 can To be chip, the first above-mentioned access layer exchange device can be.
The access layer exchange device 1800 includes one or more processing units 1810.The processing unit 1810 can be with It is general processor or application specific processor etc..Such as it can be baseband processor or central processing unit.Baseband processor can be with For handling communication protocol and communication data, central processing unit can be used for access layer exchange device (e.g., base Stand, terminal or chip etc.) it is controlled, execute software program, the data of processing software program.At this point, processing unit can be managed Solution is different data packet handing module shown in Figure 10.
The access layer exchange device may include transmission unit 1820, to realize the output (transmission) of signal.For example, Accessing layer exchange device can be chip, and the transmission unit 1820 can be the output circuit or communication interface of chip.Institute Stating chip can be used for the first access layer exchange device.At this point, transmission unit can be understood as output interface shown in Figure 10.
The access layer exchange device may include receiving unit 1830, to realize the input (reception) of signal.For example, Accessing layer exchange device can be chip, and the transmission unit 1820 can be the input circuit or communication interface of chip.Institute Stating chip can be used for the first access layer exchange device.At this point, receiving unit can be understood as access interface shown in Figure 10.
The first access layer exchange device further include:
Storage unit 1840, for storing corresponding instruction.It is above-mentioned that processing unit executes the instruction realization in storage unit Step in embodiment of the method.
Figure 19 is a kind of access layer exchange device schematic diagram in the embodiment of the present application.Device 1900 can be used for realizing above-mentioned side Method described in method embodiment may refer to the explanation in above method embodiment.The access layer exchange device 1900 can To be chip, the second above-mentioned access layer exchange device can be.
The access layer exchange device 1900 includes one or more processing units 1910.The processing unit 1910 can be with It is general processor or application specific processor etc..Such as it can be baseband processor or central processing unit.Baseband processor can be with For handling communication protocol and communication data, central processing unit can be used for access layer exchange device (e.g., base Stand, terminal or chip etc.) it is controlled, execute software program, the data of processing software program.At this point, processing unit can be managed Solution is different data packet handing module shown in Figure 10.
The access layer exchange device may include transmission unit 1920, to realize the output (transmission) of signal.For example, Accessing layer exchange device can be chip, and the transmission unit 1920 can be the output circuit or communication interface of chip.Institute Stating chip can be used for the first access layer exchange device.At this point, transmission unit can be understood as output interface shown in Figure 10.
The access layer exchange device may include receiving unit 1930, to realize the input (reception) of signal.For example, Accessing layer exchange device can be chip, and the transmission unit 1920 can be the input circuit or communication interface of chip.Institute Stating chip can be used for the second access layer exchange device.At this point, receiving unit can be understood as access interface shown in Figure 10.
The first access layer exchange device further include:
Storage unit 1940, for storing corresponding instruction.It is above-mentioned that processing unit executes the instruction realization in storage unit Step in embodiment of the method.
The another aspect of the application provides a kind of computer readable storage medium, deposits in the computer readable storage medium Instruction is contained, when the instruction is run on computers, so that computer executes in the above-mentioned method as shown in Fig. 6-Figure 17 Step.
The another aspect of the application provides a kind of computer program product comprising instruction, when the computer program product When running on computers, so that computer executes the step in the method as shown in Fig. 6-Figure 17.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), arbitrary access are deposited The various media that can store program code such as reservoir (Random Access Memory, RAM), magnetic or disk.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain Lid is within the scope of protection of this application.Therefore, the protection scope of the application should be based on the protection scope of the described claims.

Claims (30)

1. a kind of method for forwarding data is applied to access layer exchange device, the access layer exchange device includes multiple first Port and at least one second port, the first port is for connecting core layer exchange device, and the second port is for connecting Connect server characterized by comprising
First access layer exchange device receives the first data packet, first number by target second port, from first server First identifier is carried according to packet, the first identifier is used to indicate the second access layer exchange device, and the second access layer exchange is set The standby access layer exchange device to be connected with second server, the second server are the purpose service of first data packet Device, the target second port are to take at least one second port of the first access layer exchange device, with described first The second port that business device is connected;
The first access layer exchange device determines target first port, passes through the target first according to the first identifier Port sends first data packet, the target to the second access layer exchange device via the core layer exchange device First port for it is described first access layer exchange device multiple first ports in via the core layer exchange device and institute State the connected first port of the second access layer exchange device.
2. the method according to claim 1, wherein the method also includes:
The first access layer exchange device is receiving the second access layer exchange device by the target first port When the information for carrying the first identifier sent, the first mapping relations are established, first mapping relations are described first The mapping relations of mark and the target first port;And
The first access layer exchange device determines that target first port includes: according to the first identifier
The first access layer exchange device according to the first identifier and first mapping relations carried in the first data packet, Determine the target first port.
3. according to the method described in claim 2, it is characterized in that, the information for carrying the first identifier is the second number According to packet, second data packet is generated by the second access layer exchange device.
4. according to the method in claim 2 or 3, which is characterized in that establish first in the first access layer exchange device Before mapping relations, the method also includes:
The first access layer exchange device deletes the second mapping relations, wherein second mapping relations are the target the The mapping relations of Single port and second identifier, the second identifier are used to indicate third access layer exchange device, and the third connects It is different with the second access layer exchange device to enter layer exchange device.
5. according to the method described in claim 4, it is characterized in that, deleting the second mapping in the first access layer exchange device Before relationship, the method also includes:
The first access layer exchange device determines that the intensity of the first optical signal is less than or equal to second threshold, also, the second light The intensity stabilization of signal is first threshold, wherein first optical signal is the first access layer exchange device described in The optical signal from third access layer exchange device that target first port receives, second optical signal are described the One access layer exchange device is believed by the light from the second access layer exchange device that the target first port receives Number.
6. method according to any one of claims 1-5, which is characterized in that the method also includes:
By the target first port, Xiang Suoshu second accesses layer exchange device transmission and takes the first access layer exchange device Information with third mark, the third mark are used to indicate the first access layer exchange device.
7. according to the method described in claim 6, it is characterized in that, the information for carrying third mark is third data Packet, the third data packet are generated by the first access layer exchange device.
8. method according to any one of claims 1-7, which is characterized in that by the target first port via Before the core layer exchange device sends first data packet to the second access layer exchange device, the method is also wrapped It includes:
The first access layer exchange device determines that the target first port is effective, wherein the target first port is effective It is set by what the target first port received from second access layer exchange for the first access layer exchange device Standby light signal strength stabilizes to first threshold.
9. method according to claim 1 to 8, which is characterized in that the target first port includes target light Port, the target optical port is for connecting core layer optical switching device.
10. a kind of method for forwarding data is applied to access layer exchange device, the access layer exchange device includes multiple thirds Port and at least one the 4th port, the third port is for connecting core layer exchange device, and the 4th port is for connecting Connect server characterized by comprising
Second access layer exchange device is received the first access layer exchange device and is handed over via the core layer by target third port The first data packet that exchange device is sent, first data packet carry first identifier, and the first identifier is used to indicate described the Two access layer exchange devices, the target third port are the warp in multiple third ports of the second access layer exchange device The third port being connected by the core layer exchange device with the first access layer exchange device;
The second access layer exchange device sends first data packet, institute to second server by the 4th port of target The destination server that second server is first data packet is stated, the 4th port of target is second access layer exchange In at least one the 4th port of equipment, the 4th port that is connected with the second server.
11. according to the method described in claim 10, it is characterized in that, the method also includes:
By the target third port, Xiang Suoshu first accesses layer exchange device transmission and takes the second access layer exchange device Information with the first identifier.
12. according to the method for claim 11, which is characterized in that the information for carrying first identifier is the second data Packet, second data packet are generated by the second access layer exchange device.
13. method described in any one of 0-12 according to claim 1, which is characterized in that the method also includes:
The second access layer exchange device is received the first access layer exchange device and is sent by the target third port The information for carrying third mark, the third mark is used to indicate the first access layer exchange device.
14. according to the method for claim 13, which is characterized in that the information for carrying the third mark is third Data packet, the third data packet are generated by the first access layer exchange device.
15. method described in any one of 0-14 according to claim 1, which is characterized in that by target third port, from the Before one access layer exchange device receives the first data packet, the method also includes:
The second access layer exchange device determines that the target third port is effective, and the target third port is effectively described The light from the first access layer exchange device that second access layer exchange device is received by the target third port Signal strength stabilizes to third threshold value.
16. a kind of access layer exchange device, including multiple first ports and at least one second port, the first port are used for Core layer exchange device is connected, the second port is for connecting server characterized by comprising
Receiving unit, for receiving the first data packet from first server, first data packet is taken by target second port Band first identifier, the first identifier are used to indicate the second access layer exchange device, the second access layer exchange device be with The connected access layer exchange device of second server, the second server are the destination server of first data packet, institute State target second port be it is described first access layer exchange device at least one second port in, with the first server phase The second port of connection;
Processing unit, for determining target first port according to the first identifier;
Transmission unit, for being handed over via the core layer exchange device to second access layer by the target first port Exchange device sends first data packet, and the target first port is multiple first ends of the first access layer exchange device The first port being connected via the core layer exchange device with the second access layer exchange device in mouthful.
17. access layer exchange device according to claim 16, which is characterized in that the processing unit is also used in institute It states receiving unit and carries described the by what the target first port received that the second access layer exchange device sends When the information of one mark, the first mapping relations are established, first mapping relations are the first identifier and the target first The mapping relations of port;And
The processing unit, for determining that target first port includes: according to the first identifier
The processing unit determines the mesh according to the first identifier and first mapping relations that carry in the first data packet Mark first port.
18. access layer exchange device according to claim 17, which is characterized in that described to carry the first identifier Information is the second data packet, and second data packet is generated by the second access layer exchange device.
19. access layer exchange device described in 7 or 18 according to claim 1, which is characterized in that in the processing unit, establish Before first mapping relations, the processing unit is also used to delete the second mapping relations, wherein second mapping relations are institute The mapping relations of target first port and second identifier are stated, the second identifier is used to indicate third access layer exchange device, institute It is different with the second access layer exchange device to state third access layer exchange device.
20. access layer exchange device according to claim 19, which is characterized in that delete described the in the processing unit Before two mappings, the processing unit is also used to determine that the intensity of the first optical signal is less than or equal to second threshold, also, second Wherein for first threshold, first optical signal is that the receiving unit passes through the target first end to the intensity stabilization of optical signal The optical signal from third access layer exchange device that mouth receives, second optical signal is that the receiving unit passes through The optical signal from the second access layer exchange device that the target first port receives.
21. access layer exchange device described in any one of 6-20 according to claim 1, which is characterized in that the transmission unit, It being also used to through the target first port, Xiang Suoshu second accesses layer exchange device and sends the information for carrying third mark, The third mark is used to indicate the first access layer exchange device.
22. access layer exchange device according to claim 21, which is characterized in that the information for carrying third mark For third data packet, the third data packet is generated by the first access layer exchange device.
23. access layer exchange device described in any one of 6-22 according to claim 1, which is characterized in that passing through the mesh Before mark first port sends first data packet to the second access layer exchange device, the processing unit is also used to really The fixed target first port is effective, and the target first port is effectively that the first access layer exchange device passes through the mesh The light signal strength from the second access layer exchange device that mark first port receives stabilizes to first threshold.
24. access layer exchange device described in any one of 6-23 according to claim 1, which is characterized in that the target first Port includes target optical port, and the target optical port is for connecting core layer optical switching device.
25. a kind of access layer exchange device, the access layer exchange device includes multiple third ports and at least one the 4th end Mouthful, the third port is for connecting core layer exchange device, and the 4th port is for connecting server, which is characterized in that Include:
Receiving unit, for receiving the first access layer exchange device and being set via core layer exchange by target third port The first data packet that preparation is sent, first data packet carry first identifier, and the first identifier is used to indicate the second access layer Switching equipment, the target third port are in multiple third ports of the second access layer exchange device via the core layer The third port that switching equipment is connected with the first access layer exchange device;
Transmitted unit, for sending first data packet, second clothes to second server by the 4th port of target Device be engaged in as the destination server of first data packet, layer exchange device is accessed extremely for described second in the 4th port of target In few 4th port, the 4th port that is connected with the second server.
26. access layer exchange device according to claim 25, which is characterized in that the transmission unit is also used to pass through The target third port, Xiang Suoshu first access layer exchange device and send the information for carrying the first identifier.
27. access layer exchange device according to claim 26, which is characterized in that the information for carrying first identifier For the second data packet, second data packet is generated by the second access layer exchange device.
28. the access layer exchange device according to any one of claim 25-27, which is characterized in that the receiving unit, It is also used to receive the third that carries that the first access layer exchange device is sent by the target third port to identify Information, third mark is used to indicate the first access layer exchange device.
29. access layer exchange device according to claim 28, which is characterized in that described to carry what the third identified Information is third data packet, and the third data packet is generated by the first access layer exchange device.
30. the access layer exchange device according to any one of claim 25-29, which is characterized in that passing through target the Three ports, before receiving the first data packet from the first access layer exchange device, the processing unit is also used to determine the target Third port is effective, and the target third port is effectively that the second access layer exchange device passes through the target first port The light signal strength from the first access layer exchange device received stabilizes to third threshold value.
CN201810515031.9A 2018-05-25 2018-05-25 Method for forwarding data and access stratum switching equipment Active CN110536187B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810515031.9A CN110536187B (en) 2018-05-25 2018-05-25 Method for forwarding data and access stratum switching equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810515031.9A CN110536187B (en) 2018-05-25 2018-05-25 Method for forwarding data and access stratum switching equipment

Publications (2)

Publication Number Publication Date
CN110536187A true CN110536187A (en) 2019-12-03
CN110536187B CN110536187B (en) 2021-02-09

Family

ID=68657672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810515031.9A Active CN110536187B (en) 2018-05-25 2018-05-25 Method for forwarding data and access stratum switching equipment

Country Status (1)

Country Link
CN (1) CN110536187B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021110056A1 (en) * 2019-12-06 2021-06-10 中兴通讯股份有限公司 Data processing method, apparatus and device and storage medium
CN115190382A (en) * 2022-09-09 2022-10-14 之江实验室 Optical switching routing device and method based on Banyan network topology

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873373A (en) * 2012-12-11 2014-06-18 杭州华三通信技术有限公司 Multicast data message forwarding method and equipment
CN103986663A (en) * 2014-05-08 2014-08-13 中国联合网络通信集团有限公司 Data center, method for processing data and network controller
CN105430711A (en) * 2015-10-28 2016-03-23 小米科技有限责任公司 Information transmission method and device, and equipment
CN107395496A (en) * 2017-06-16 2017-11-24 腾讯科技(深圳)有限公司 A kind of data forwarding method, device, gateway device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873373A (en) * 2012-12-11 2014-06-18 杭州华三通信技术有限公司 Multicast data message forwarding method and equipment
CN103986663A (en) * 2014-05-08 2014-08-13 中国联合网络通信集团有限公司 Data center, method for processing data and network controller
CN105430711A (en) * 2015-10-28 2016-03-23 小米科技有限责任公司 Information transmission method and device, and equipment
CN107395496A (en) * 2017-06-16 2017-11-24 腾讯科技(深圳)有限公司 A kind of data forwarding method, device, gateway device and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021110056A1 (en) * 2019-12-06 2021-06-10 中兴通讯股份有限公司 Data processing method, apparatus and device and storage medium
US11818057B2 (en) 2019-12-06 2023-11-14 Xi'an Zhongxing New Software Co. Ltd. Method and apparatus for processing data, device, and storage medium
CN115190382A (en) * 2022-09-09 2022-10-14 之江实验室 Optical switching routing device and method based on Banyan network topology
CN115190382B (en) * 2022-09-09 2022-12-06 之江实验室 Optical switching routing device and method based on Banyan network topology

Also Published As

Publication number Publication date
CN110536187B (en) 2021-02-09

Similar Documents

Publication Publication Date Title
CN108512760B (en) Routing method based on SDN guarantee service QoS
CN105264845B (en) Data Transmission Controlling node, communication system and data transfer management method
CN108668381B (en) Communication means and device
CN105900390B (en) Link control node, chainlink control method and communication system
CN103746911B (en) A kind of SDN structure and its communication means
CN102263699B (en) Load balancing implementation method and device applied to MPLS TP (multiprotocol label switch transport profile)
CN104023006B (en) Multi-path transmission system and method based on application layer relaying
CN104412549B (en) The network entity of communication network
CN107306438A (en) A kind of generation method of wireless access network section, wireless access network and section manager
CN104349387B (en) The method and apparatus that downlink transmission is used in the system for supporting double/multi-connection
CN107135158A (en) Optimal route selection method in a kind of multi-path transmission
CN104168212B (en) The method and apparatus for sending message
CN107404441B (en) Method and equipment for data stream splitting in slicing network
CN103731373B (en) The method of adjustment of bandwidth resources, apparatus and system
CN105814922A (en) Address identifier allocation method, and related device and system
CN106358202A (en) Improved C-RAN network architecture and resource dispatching method
CN109429270A (en) Communication means and device
CN105992297A (en) SDN-based connection management and forwarding control method and related equipment
CN103746925A (en) FiWi converged network and communication method based on FiWi converged network
CN105474692B (en) Method for handover control, device and cordless communication network
CN112350949A (en) Rerouting congestion control method and system based on flow scheduling in software defined network
CN103746886A (en) FiWi node and FiWi fusion networking method
CN104685959B (en) Passive radio link control entity with unified interface
CN110536187A (en) Forward the method and access layer exchange device of data
CN110138685A (en) A kind of communication means and device

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