Data transmission method and device, network system, computer device and storage medium

By using wavelength selective switching devices and colored light wavelength transmission methods on the same network device layer, the complexity and cost issues of traditional spine-leaf network architecture when expanding service processing nodes are resolved, achieving low-cost, highly scalable data transmission.

CN116847228BActive Publication Date: 2025-10-21CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310826519.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-06
Publication Date
2025-10-21
Estimated Expiration
2043-07-06

AI Technical Summary

Technical Problem

When expanding service processing nodes, the traditional Spine-Leaf network architecture has high network architecture complexity and cost, resulting in increased network architecture costs.

Method used

Wavelength selective switching devices and the same network device layer are used to transmit data through colored light wavelengths, and the reflection direction of the colored light wavelengths is used to transmit data to the destination network device, avoiding the use of a spine-leaf network architecture composed of routers or three-layer switches.

Benefits of technology

It reduces the complexity and cost of the network architecture, improves network scalability, and reduces the deployment of routers or switches at the spine network layer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116847228B_ABST
    Figure CN116847228B_ABST
Patent Text Reader

Abstract

The application relates to a data transmission method and device, a network system, computer equipment, a storage medium and a computer program product. The method comprises the following steps: receiving data to be transmitted transmitted by a network device through a corresponding colored light wavelength; the colored light wavelength corresponds to a next transmission address of the network device, and the next transmission address is determined according to the data to be transmitted; determining a reflection direction corresponding to the colored light wavelength; the reflection direction is used for pointing to a next network device corresponding to the next transmission address; the network device and the next network device belong to the same network device layer; transmitting the data to be transmitted to the next network device through the colored light wavelength according to the reflection direction; taking the next network device as the network device, and jumping to the step of receiving the data to be transmitted transmitted by the network device through the corresponding colored light wavelength until the next network device is a destination network device of the data to be transmitted. By adopting the method, the network architecture cost can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network technology, and in particular to a data transmission method, apparatus, network system, computer equipment, storage medium, and computer program product. Background Art

[0002] With the growing demand for value-added services and the distributed service processing mode, user data packets usually need to be processed at multiple different service processing nodes with the help of service chain technology. Therefore, in scenarios such as local area networks, IDC (Internet Data Center) networks, and cloud networks, a spine-leaf network architecture consisting of routers or three-layer switches is usually adopted, such as Figure 1 , routers or layer 3 switches transmit data packets through routing.

[0003] In traditional technology, in order to meet the growing demand for service processing nodes, more routers or three-layer switches are generally deployed in the spine network layer of the spine-leaf network architecture; however, this networking method will make the entire network architecture more complex, resulting in higher network architecture costs. Summary of the Invention

[0004] Based on this, it is necessary to provide a data transmission method, device, network system, computer equipment, computer-readable storage medium and computer program product that can reduce the cost of network architecture to address the above technical problems.

[0005] In a first aspect, the present application provides a data transmission method, applied to a wavelength selective switch device, the method comprising:

[0006] receiving data to be transmitted from a network device via a corresponding colored light wavelength; the colored light wavelength corresponds to a next transmission address of the network device, and the next transmission address is determined according to the data to be transmitted;

[0007] determining a reflection direction corresponding to the colored light wavelength; the reflection direction is used to point to a next network device corresponding to the next transmission address; the network device and the next network device belong to the same network device layer;

[0008] Transmitting the data to be transmitted to the next network device via the colored light wavelength and in the reflection direction;

[0009] The next network device is used as a network device, and the process jumps to the step of receiving the data to be transmitted transmitted by the network device through the corresponding colored light wavelength until the next network device becomes the destination network device of the data to be transmitted.

[0010] In one embodiment, determining the reflection direction corresponding to the wavelength of the colored light includes:

[0011] Obtaining the wavelength frequency of the colored light wavelength;

[0012] A first mapping table is queried to obtain a reflection direction corresponding to the wavelength frequency as the reflection direction corresponding to the wavelength of the colored light; the first mapping table records a mapping relationship between the wavelength frequency and the reflection direction.

[0013] In one embodiment, before determining the reflection direction corresponding to the wavelength of the colored light, the method further includes:

[0014] Receive the mapping table between wavelength frequency and reflection direction sent by the controller;

[0015] The mapping table between wavelength frequency and reflection direction is confirmed as the first mapping table.

[0016] In one embodiment, before the next network device is used as the network device and the process jumps to the step of receiving the data to be transmitted transmitted by the network device through the corresponding colored light wavelength, until the next network device becomes the destination network device, the process further includes:

[0017] Identifying a transmission address from the data to be transmitted;

[0018] Identifying a destination transmission address from the transmission address, and confirming the network device corresponding to the destination transmission address as the destination network device of the data to be transmitted;

[0019] The step of using the next network device as a network device and jumping to the step of receiving the data to be transmitted transmitted by the receiving network device via the corresponding colored light wavelength includes:

[0020] In the case that the next network device does not belong to the destination network device, the next network device is used as the network device, and the process jumps to the step of receiving the data to be transmitted transmitted by the network device via the corresponding colored light wavelength.

[0021] In a second aspect, the present application provides another data transmission method, applied to a network device, the method comprising:

[0022] Determining the next transmission address of the network device according to the data to be transmitted;

[0023] Determining a colored light wavelength corresponding to a next transmission address of the network device;

[0024] The data to be transmitted is transmitted to a wavelength selection switch device via the colored light wavelength; the wavelength selection switch device is used to receive the data to be transmitted transmitted by the network device via the colored light wavelength, determine the reflection direction corresponding to the colored light wavelength, and transmit the data to be transmitted to the next network device corresponding to the next transmission address via the colored light wavelength according to the reflection direction, use the next network device as the network device, and jump to the step of receiving the data to be transmitted transmitted by the network device via the colored light wavelength until the next network device is the destination network device for the data to be transmitted; the reflection direction is used to point to the next network device corresponding to the next transmission address, and the network device and the next network device belong to the same network device layer.

[0025] In one embodiment, determining the colored light wavelength corresponding to the next transmission address of the network device includes:

[0026] Querying a second mapping table to obtain a wavelength frequency corresponding to a next transmission address of the network device; wherein the second mapping table records a mapping relationship between the transmission address and the wavelength frequency;

[0027] The colored light wavelength corresponding to the wavelength frequency is used as the colored light wavelength corresponding to the next transmission address of the network device.

[0028] In one embodiment, before determining the colored light wavelength corresponding to the next transmission address of the network device, the method further includes:

[0029] Receive the mapping table between the transmission address and wavelength frequency issued by the controller;

[0030] The mapping table between the transmission address and the wavelength frequency is confirmed as the second mapping table.

[0031] In one embodiment, transmitting the data to be transmitted to a wavelength selective switch device via the colored light wavelength includes:

[0032] The colored light interface of the network device is utilized to output the colored light wavelength, so as to transmit the data to be transmitted to the wavelength selection switch device via the colored light wavelength.

[0033] In a third aspect, the present application further provides a data transmission device, applied to a wavelength selective switch device, the device comprising:

[0034] A first receiving module is configured to receive data to be transmitted from a network device via a corresponding colored light wavelength; the colored light wavelength corresponds to a next transmission address of the network device, and the next transmission address is determined according to the data to be transmitted;

[0035] a direction determination module, configured to determine a reflection direction corresponding to the colored light wavelength; the reflection direction is configured to point to a next network device corresponding to the next transmission address; the network device and the next network device belong to the same network device layer;

[0036] A data transmission module, configured to transmit the data to be transmitted to the next network device via the colored light wavelength and in the reflection direction;

[0037] The second receiving module is used to take the next network device as the network device and jump to the step of receiving the data to be transmitted transmitted by the network device through the corresponding colored light wavelength until the next network device is the destination network device of the data to be transmitted.

[0038] In a fourth aspect, the present application further provides another data transmission device, applied to a network device, the device comprising:

[0039] An address determination module, configured to determine the next transmission address of the network device according to the data to be transmitted;

[0040] A wavelength determination module, configured to determine a colored light wavelength corresponding to a next transmission address of the network device;

[0041] A data sending module is used to transmit the data to be transmitted to a wavelength selection switch device via the colored light wavelength; the wavelength selection switch device is used to receive the data to be transmitted transmitted by the network device via the colored light wavelength, determine the reflection direction corresponding to the colored light wavelength, and transmit the data to be transmitted to the next network device corresponding to the next transmission address via the colored light wavelength according to the reflection direction, use the next network device as the network device, and jump to the step of receiving the data to be transmitted transmitted by the network device via the colored light wavelength until the next network device is the destination network device for the data to be transmitted; the reflection direction is used to point to the next network device corresponding to the next transmission address, and the network device and the next network device belong to the same network device layer.

[0042] In a fifth aspect, the present application further provides a network system, the system comprising: a wavelength selective switch device, and a network device layer, the network device layer comprising network devices;

[0043] The network device is configured to determine a next transmission address of the network device according to the data to be transmitted, determine a colored light wavelength corresponding to the next transmission address of the network device, and transmit the data to be transmitted to the wavelength selective switch device via the colored light wavelength;

[0044] The wavelength selection switch device is used to receive the data to be transmitted transmitted by the network device through the colored light wavelength, determine the reflection direction corresponding to the colored light wavelength, and transmit the data to be transmitted to the network device layer through the colored light wavelength according to the reflection direction. The next network device corresponding to the next transmission address uses the next network device as the network device and jumps to the step of receiving the data to be transmitted transmitted by the network device through the colored light wavelength until the next network device is the destination network device of the data to be transmitted; the reflection direction is used to point to the next network device corresponding to the next transmission address.

[0045] In a sixth aspect, the present application further provides a computer device. The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0046] receiving data to be transmitted from a network device via a corresponding colored light wavelength; the colored light wavelength corresponds to a next transmission address of the network device, and the next transmission address is determined according to the data to be transmitted;

[0047] determining a reflection direction corresponding to the colored light wavelength; the reflection direction is used to point to a next network device corresponding to the next transmission address; the network device and the next network device belong to the same network device layer;

[0048] Transmitting the data to be transmitted to the next network device via the colored light wavelength and in the reflection direction;

[0049] The next network device is used as a network device, and the process jumps to the step of receiving the data to be transmitted transmitted by the network device through the corresponding colored light wavelength until the next network device becomes the destination network device of the data to be transmitted.

[0050] In a seventh aspect, the present application further provides another computer device. The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0051] Determining the next transmission address of the network device according to the data to be transmitted;

[0052] Determining a colored light wavelength corresponding to a next transmission address of the network device;

[0053] The data to be transmitted is transmitted to a wavelength selection switch device via the colored light wavelength; the wavelength selection switch device is used to receive the data to be transmitted transmitted by the network device via the colored light wavelength, determine the reflection direction corresponding to the colored light wavelength, and transmit the data to be transmitted to the next network device corresponding to the next transmission address via the colored light wavelength according to the reflection direction, use the next network device as the network device, and jump to the step of receiving the data to be transmitted transmitted by the network device via the colored light wavelength until the next network device is the destination network device for the data to be transmitted; the reflection direction is used to point to the next network device corresponding to the next transmission address, and the network device and the next network device belong to the same network device layer.

[0054] In an eighth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the following steps:

[0055] receiving data to be transmitted from a network device via a corresponding colored light wavelength; the colored light wavelength corresponds to a next transmission address of the network device, and the next transmission address is determined according to the data to be transmitted;

[0056] determining a reflection direction corresponding to the colored light wavelength; the reflection direction is used to point to a next network device corresponding to the next transmission address; the network device and the next network device belong to the same network device layer;

[0057] Transmitting the data to be transmitted to the next network device via the colored light wavelength and in the reflection direction;

[0058] The next network device is used as a network device, and the process jumps to the step of receiving the data to be transmitted transmitted by the network device through the corresponding colored light wavelength until the next network device becomes the destination network device of the data to be transmitted.

[0059] In a ninth aspect, the present application further provides another computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0060] Determining the next transmission address of the network device according to the data to be transmitted;

[0061] Determining a colored light wavelength corresponding to a next transmission address of the network device;

[0062] The data to be transmitted is transmitted to a wavelength selection switch device via the colored light wavelength; the wavelength selection switch device is used to receive the data to be transmitted transmitted by the network device via the colored light wavelength, determine the reflection direction corresponding to the colored light wavelength, and transmit the data to be transmitted to the next network device corresponding to the next transmission address via the colored light wavelength according to the reflection direction, use the next network device as the network device, and jump to the step of receiving the data to be transmitted transmitted by the network device via the colored light wavelength until the next network device is the destination network device for the data to be transmitted; the reflection direction is used to point to the next network device corresponding to the next transmission address, and the network device and the next network device belong to the same network device layer.

[0063] In a tenth aspect, the present application further provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the following steps:

[0064] receiving data to be transmitted from a network device via a corresponding colored light wavelength; the colored light wavelength corresponds to a next transmission address of the network device, and the next transmission address is determined according to the data to be transmitted;

[0065] determining a reflection direction corresponding to the colored light wavelength; the reflection direction is used to point to a next network device corresponding to the next transmission address; the network device and the next network device belong to the same network device layer;

[0066] Transmitting the data to be transmitted to the next network device via the colored light wavelength and in the reflection direction;

[0067] The next network device is used as a network device, and the process jumps to the step of receiving the data to be transmitted transmitted by the network device through the corresponding colored light wavelength until the next network device becomes the destination network device of the data to be transmitted.

[0068] In an eleventh aspect, the present application further provides another computer program product. The computer program product includes a computer program, which, when executed by a processor, implements the following steps:

[0069] Determining the next transmission address of the network device according to the data to be transmitted;

[0070] Determining a colored light wavelength corresponding to a next transmission address of the network device;

[0071] The data to be transmitted is transmitted to a wavelength selection switch device via the colored light wavelength; the wavelength selection switch device is used to receive the data to be transmitted transmitted by the network device via the colored light wavelength, determine the reflection direction corresponding to the colored light wavelength, and transmit the data to be transmitted to the next network device corresponding to the next transmission address via the colored light wavelength according to the reflection direction, use the next network device as the network device, and jump to the step of receiving the data to be transmitted transmitted by the network device via the colored light wavelength until the next network device is the destination network device for the data to be transmitted; the reflection direction is used to point to the next network device corresponding to the next transmission address, and the network device and the next network device belong to the same network device layer.

[0072] The above-mentioned data transmission method, device, network system, computer equipment, storage medium and computer program product receive the data to be transmitted by the network device through the colored light wavelength corresponding to the next transmission address of the network device through the wavelength selection switch device, the next transmission address is determined according to the data to be transmitted, and then the reflection direction corresponding to the colored light wavelength is determined; the reflection direction is used to point to the next network device corresponding to the next transmission address, and the network device and the next network device belong to the same network device layer; finally, the data to be transmitted is transmitted to the next network device through the colored light wavelength according to the reflection direction, the next network device is used as the network device, and the process jumps to the step of receiving the data to be transmitted by the network device through the colored light wavelength corresponding to the next transmission address of the network device through the wavelength selection switch device, until the next network device is the destination network device for the data to be transmitted. In this way, the data to be transmitted is transmitted by sending and reflecting colored light wavelengths through wavelength selective switching devices and network devices in the same network device layer until the data to be transmitted is transmitted to the destination network device, that is, the network architecture composed of wavelength selective switching devices and network devices in the same network device layer, and the transmission of the entire data packet can be achieved through optical transmission. There is no need to use the Spine-Leaf network architecture composed of routers or three-layer switches, thereby reducing the deployment of routers or switches in the Spine network layer, thereby reducing the complexity of the network architecture, and further reducing the cost of the network architecture. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] Figure 1 A structural block diagram of a Spine-Leaf network architecture in one embodiment;

[0074] Figure 2 A diagram showing an application environment of a data transmission method in one embodiment;

[0075] Figure 3 1. A flow chart of a data transmission method applied to a wavelength selective switch device in one embodiment;

[0076] Figure 4 FIG. 1 is a flow chart of transmitting a data packet from A to H in one embodiment;

[0077] Figure 5 is a flow chart of a data transmission method applied to a wavelength selective switch device in another embodiment;

[0078] Figure 6 1 is a flow chart of a data transmission method applied to a network device in one embodiment;

[0079] Figure 7 is a flow chart of a data transmission method applied to a network device in another embodiment;

[0080] Figure 8 is a structural block diagram of a data transmission device in one embodiment;

[0081] Figure 9 is a structural block diagram of a data transmission device in another embodiment;

[0082] Figure 10 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0083] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0084] The data transmission method provided in the embodiment of the present application can be applied to Figure 2 In the application environment shown in FIG. , the leaf network layer (i.e., the network device layer) includes multiple network devices 202, which transmit data packets to the wavelength selection switch device 201 by optical transmission, and the wavelength selection switch device 201 reflects the data packets to the corresponding network device 202 by optical reflection. Specifically, refer to FIG. Figure 2When transmitting a data packet to be transmitted, network device 202 determines the next transmission address of network device 202 based on the data to be transmitted, determines the colored light wavelength corresponding to the next transmission address of network device 202, and transmits the data to be transmitted to wavelength selective switch device 201 via the colored light wavelength. Wavelength selective switch device 201 receives the data to be transmitted transmitted by network device 202 via the colored light wavelength, determines the reflection direction corresponding to the colored light wavelength, and transmits the data to be transmitted to the network device layer according to the reflection direction, to the next network device corresponding to the next transmission address, uses the next network device as the network device, and jumps to the step of receiving the data to be transmitted transmitted by network device 202 via the colored light wavelength until the next network device is the destination network device for the data to be transmitted; the reflection direction is used to point to the next network device corresponding to the next transmission address.

[0085] The wavelength selective switch device 201 refers to a device corresponding to a wavelength selective switch (WSS). Its port structure is 1×K (i.e., 1 input, K output), representing 1 input port and K output ports. The wavelength selective switch device 201 utilizes an optical switch array, which can add and drop wavelength signals to any channel for transmission. Based on the wavelength selective switch device 201, arbitrary port assignment can be achieved. After the colored light wavelength is input through a collimating lens, it is filtered using a diffraction grating or an AWG (arrayed waveguide grating) to separate the different wavelengths. Each wavelength is then transmitted to the optical switch. The optical switch, as needed, redirects the designated colored light wavelength in the specified direction and eliminates unwanted wavelengths, thereby achieving wavelength selection. Furthermore, there can be one or more wavelength selective switch devices 201, depending on the actual situation. Network device 202 refers to a router or switch, which is connected to a service processing node.

[0086] It should be noted that during data transmission, Figure 1The method provided is: after receiving the data to be transmitted, the left network device in the leaf network layer (i.e., Leaf layer) transmits the data to be transmitted to the left network device in the spine network layer (i.e., Spine layer) through network transmission; the left network device in the spine network layer transmits the data to be transmitted to the network device in the super spine network layer (i.e., Super Spine layer) through network transmission; the network device in the super spine network layer transmits the data to be transmitted to the right network device in the spine network layer through network transmission; the right network device in the spine network layer transmits the data to be transmitted to the right network device in the leaf network layer through network transmission. However, the number of network devices in the leaf network layer connected to the network devices in the spine network layer is limited. As the number of service processing nodes increases, the number of network devices in the leaf network layer increases accordingly, and the number of network devices in the spine network layer also increases accordingly (i.e., the number of network devices in the spine network layer needs to continue to increase), which makes the entire network architecture very complex and causes the network architecture cost to be very high. In this application, if Figure 2 As shown, the network architecture composed of wavelength selection switch devices and network devices in the same network device layer can realize the transmission of the entire data packet through optical transmission, without the need to use the Spine-Leaf network architecture composed of routers or three-layer switches, thereby reducing the deployment of routers or switches in the Spine network layer, thereby reducing the complexity of the network architecture, and then reducing the network architecture cost, while improving network scalability.

[0087] In one embodiment, Figure 3 As shown, a data transmission method is provided, which is applied to Figure 2 The wavelength selective switch device in FIG. 1 is used as an example to illustrate the process, including the following steps:

[0088] Step S301: receiving data to be transmitted from a network device via a corresponding colored light wavelength; the colored light wavelength corresponds to a next transmission address of the network device, and the next transmission address is determined according to the data to be transmitted.

[0089] The data to be transmitted refers to the data that needs to be transmitted, such as business data packets. The data to be transmitted carries the transmission address that needs to be passed, such as Figure 4 The representation of A→F→B→H means that the data to be transmitted passes through A, F and B and is transmitted to H. It should be noted that the data to be transmitted carries the transmission address to be passed through, so the next transmission address of the current transmission address can be determined through the data to be transmitted.

[0090] Among them, different transmission addresses correspond to different colored light wavelengths, for example, transmission address F corresponds to a colored light wavelength of 193.100 THz, transmission address B corresponds to a colored light wavelength of 195.100 THz, and transmission address H corresponds to a colored light wavelength of 194.100 THz.

[0091] The network device transmits the data to be transmitted to the wavelength selective switch device through optical transmission, for example, by transmitting the data to be transmitted to the wavelength selective switch device through the colored light wavelength corresponding to the next transmission address of the network device.

[0092] Specifically, after receiving the data to be transmitted, the network device in the network device layer determines the network device's next transmission address based on the transmission address carried in the data to be transmitted. It then queries the mapping relationship between the transmission address and the color light wavelength to determine the color light wavelength corresponding to the network device's next transmission address, and transmits the data to be transmitted to the wavelength selective switch device via this color light wavelength. The wavelength selective switch device receives the data to be transmitted from the network device via the corresponding color light wavelength and reflects the data to be transmitted to the corresponding network device.

[0093] For example, refer to Figure 4 After receiving a user's data packet, network device A in the leaf network layer (i.e., the Leaf layer) first determines that its next transmission address is F based on the transmission address carried in the data packet (e.g., A→F→B→H). It then locally queries the mapping between transmission addresses and wavelengths, and determines that the wavelength corresponding to the next transmission address F is 193.100 THz. It then transmits the user's data packet to the wavelength selective switch device via the 193.100 THz wavelength. The wavelength selective switch device receives the data packet transmitted by network device A via the 193.100 THz wavelength.

[0094] Step S302, determining a reflection direction corresponding to the colored light wavelength; the reflection direction is used to point to the next network device corresponding to the next transmission address; the network device and the next network device belong to the same network device layer.

[0095] The network device layer refers to the leaf network layer, such as the Leaf layer; the network device layer includes multiple network devices, such as Figure 4 A, B, C, D, E, F, G, and H are shown. It should be noted that the network device, the next network device, and the destination network device all belong to the same network device layer. Different transmission addresses correspond to different network devices, for example, the next transmission address corresponds to the next network device.

[0096] Different colored light wavelengths correspond to different reflection directions. The reflection direction indicates the direction of reflection toward the corresponding network device, indicating that the reflection direction is used to point to the corresponding network device, such as the next network device corresponding to the next transmission address. For example, a colored light wavelength of 193.100 THz corresponds to reflection direction F, indicating that it is directed toward network device F; a colored light wavelength of 194.100 THz corresponds to reflection direction H, indicating that it is directed toward network device H; and a colored light wavelength of 195.100 THz corresponds to reflection direction B, indicating that it is directed toward network device B.

[0097] Specifically, the wavelength selection switch device queries the mapping relationship between the colored light wavelength and the reflection direction based on the received colored light wavelength, and determines the reflection direction corresponding to the received colored light wavelength; based on the reflection direction, it determines the next network device corresponding to the next transmission address, so as to facilitate the subsequent reflection of the colored light wavelength to the next network device.

[0098] For example, refer to Figure 4 After receiving the data packet transmitted by network device A using the colored light wavelength of 193.100 THz, the wavelength selective switch device locally queries the mapping relationship between the colored light wavelength and the reflection direction, and determines that the reflection direction corresponding to the colored light wavelength of 193.100 THz is F.

[0099] Step S303 : transmitting the data to be transmitted to the next network device according to the reflection direction via the colored light wavelength.

[0100] Among them, the wavelength selection switch device transmits the data to be transmitted to the corresponding network device by means of light reflection, for example, by transmitting the data to be transmitted to the next network device through the colored light wavelength corresponding to the next transmission address of the network device according to the reflection direction corresponding to the colored light wavelength.

[0101] It should be noted that after the wavelength selective switch device transmits the data to be transmitted to the corresponding network device, the corresponding network device may process the data to be transmitted or may not process the data to be transmitted.

[0102] Specifically, the wavelength selective switch device reflects the colored light wavelength to the next network device according to the reflection direction, so as to transmit the data to be transmitted to the next network device. Figure 4 After determining that the reflection direction corresponding to the colored light wavelength of 193.100 THz is F, the wavelength selective switch device transmits the data packet to the network device F through the colored light wavelength of 193.100 THz according to the reflection direction F.

[0103] In step S304, the next network device is used as the network device, and the process jumps to the step of receiving the data to be transmitted transmitted by the network device via the corresponding colored light wavelength, until the next network device becomes the destination network device for the data to be transmitted.

[0104] The destination network device of the data to be transmitted refers to the network device corresponding to the last transmission address in the transmission addresses carried in the data to be transmitted, such as Figure 4 In the example, the destination network device is H.

[0105] Specifically, the wavelength selective switch device determines whether the next network device that receives the data to be transmitted is the destination network device for the data to be transmitted. If not, it uses the next network device as the network device and jumps to the step of receiving the data to be transmitted transmitted by the network device via the corresponding colored light wavelength, repeatedly performing steps S301 to S303 until the next network device that receives the data to be transmitted is the destination network device for the data to be transmitted. In other words, the wavelength selective switch device transmits the data to be transmitted to the destination network device and stops further transmission. Furthermore, the destination network device may process the data to be transmitted or transmit the data to the service processing node.

[0106] For example, refer to Figure 4 After receiving the user's data packet, network device F first determines that the next transmission address of network device F is B based on the transmission address carried in the data packet (for example, A→F→B→H). It then locally queries the mapping relationship between transmission addresses and color light wavelengths, and determines that the color light wavelength corresponding to the next transmission address B is the color light wavelength of 195.100THz. It then transmits the user's data packet to the wavelength selection switch device via the color light wavelength of 195.100THz. The wavelength selection switch device receives the data packet transmitted by network device F via the color light wavelength of 195.100THz, and then locally queries the mapping relationship between the color light wavelength and the reflection direction, and determines that the reflection direction corresponding to the color light wavelength of 195.100THz is B. It then transmits the user's data packet to network device B via the color light wavelength of 195.100THz and in the reflection direction B.

[0107] Furthermore, after receiving the user's data packet, network device B first determines that the next transmission address of network device B is H based on the transmission address carried in the data packet (for example, A→F→B→H). It then locally queries the mapping relationship between transmission addresses and color light wavelengths, determines that the color light wavelength corresponding to the next transmission address H is a color light wavelength of 194.100THz, and then transmits the user's data packet to the wavelength selective switch device via the color light wavelength of 194.100THz. The wavelength selective switch device receives the data packet transmitted by network device B via the color light wavelength of 194.100THz, then locally queries the mapping relationship between the color light wavelength and the reflection direction, determines that the reflection direction corresponding to the color light wavelength of 194.100THz is H, and then transmits the user's data packet to network device H via the color light wavelength of 194.100THz and in the reflection direction H. Since network device H is the destination network device of the data packet, further transmission of the data packet stops.

[0108] In the data transmission method provided in the above embodiment, the data to be transmitted is transmitted by sending and reflecting colored light wavelengths through wavelength selection switch devices and network devices in the same network device layer until the data to be transmitted is transmitted to the destination network device, that is, the network architecture composed of wavelength selection switch devices and network devices in the same network device layer, and the transmission of the entire data packet can be achieved by optical transmission, without the need to use the Spine-Leaf network architecture composed of routers or three-layer switches, thereby reducing the deployment of routers or switches in the Spine network layer, thereby reducing the complexity of the network architecture, and further reducing the network architecture cost.

[0109] In one embodiment, the above-mentioned step S302, determining the reflection direction corresponding to the wavelength of the colored light, specifically includes the following contents: obtaining the wavelength frequency of the colored light wavelength; querying the first mapping table to obtain the reflection direction corresponding to the wavelength frequency as the reflection direction corresponding to the colored light wavelength; the first mapping table records the mapping relationship between the wavelength frequency and the reflection direction.

[0110] Different colored light wavelengths correspond to different wavelength frequencies, which in turn correspond to different reflection directions. The first mapping table includes multiple mappings between wavelength frequencies and reflection directions. For example, 193.100 THz corresponds to reflection direction F, 194.100 THz corresponds to reflection direction H, and 195.100 THz corresponds to reflection direction B.

[0111] Specifically, the wavelength selection switch device identifies the wavelength of the colored light and obtains the wavelength frequency of the colored light wavelength; according to the wavelength frequency of the colored light wavelength, the first mapping table recording the mapping relationship between the wavelength frequency and the reflection direction is queried to obtain the reflection direction corresponding to the wavelength frequency of the colored light wavelength, and the reflection direction is used as the reflection direction corresponding to the colored light wavelength.

[0112] For example, assuming that the wavelength frequency of the colored light wavelength is 193.100 THz, and in the first mapping table, 193.100 THz corresponds to the reflection direction F, indicating that the reflection direction corresponding to the colored light wavelength is F.

[0113] In this embodiment, by querying the first mapping table, the reflection direction corresponding to the colored light wavelength is determined, so that the data to be transmitted can be accurately transmitted to the next network device according to the reflection direction through the colored light wavelength, avoiding data transmission errors, thereby improving data transmission accuracy.

[0114] In one embodiment, the above step S302, before determining the reflection direction corresponding to the colored light wavelength, further includes the step of obtaining a first mapping table, specifically including the following contents: receiving a mapping table between wavelength frequency and reflection direction sent by the controller; and confirming the mapping table between wavelength frequency and reflection direction as the first mapping table.

[0115] It should be noted that the first mapping table can be updated according to actual conditions.

[0116] Specifically, the wavelength selective switch device receives the mapping table between wavelength frequency and reflection direction sent by the controller, identifies the mapping table between wavelength frequency and reflection direction as the first mapping table, and stores it locally.

[0117] In this embodiment, by receiving the first mapping table between wavelength frequency and reflection direction sent by the controller, it is beneficial to accurately determine the reflection direction corresponding to the colored light wavelength by querying the first mapping table, thereby improving the accuracy of determining the reflection direction.

[0118] In one embodiment, step S304, before determining the next network device as a network device and jumping to the step of receiving the data to be transmitted transmitted by the network device via the corresponding colored light wavelength, further includes the step of determining the destination network device, specifically including the following: identifying a transmission address from the data to be transmitted; identifying a destination transmission address from the transmission address, and identifying the network device corresponding to the destination transmission address as the destination network device for the data to be transmitted. Furthermore, step S304, before determining the next network device as a network device and jumping to the step of receiving the data to be transmitted transmitted by the network device via the corresponding colored light wavelength, specifically includes the following: if the next network device is not the destination network device, determining the next network device as a network device and jumping to the step of receiving the data to be transmitted transmitted by the network device via the corresponding colored light wavelength.

[0119] The data to be transmitted includes multiple groups of transmission instructions, and the format of each group of transmission instructions is [Locator, Function (i.e. End.W SID), Args], which means (current transmission address, next transmission address, parameters). Figure 4 The transmission instructions corresponding to the data to be transmitted are (A::100, End.W SID=F::100), (F::100, End.W SID=B::100) and (B::100, End.W SID=H::100).

[0120] Specifically, the wavelength selective switch device identifies the transmission address of the data to be transmitted from the transmission instruction of the data to be transmitted; identifies the last transmission address in the transmission address as the destination transmission address; and identifies the network device corresponding to the destination transmission address in the network device layer as the destination network device of the data to be transmitted. The wavelength selective switch device then determines whether the next network device that receives the data to be transmitted is the destination network device of the data to be transmitted. If not, the wavelength selective switch device uses the next network device as the network device and jumps to the step of receiving the data to be transmitted transmitted by the network device via the corresponding colored light wavelength, repeating steps S301 to S303 until the next network device that receives the data to be transmitted is the destination network device of the data to be transmitted, at which point the transmission of the data to be transmitted ceases.

[0121] For example, the wavelength selective switch device identifies the transmission address as A→F→B→H from the transmission instructions of the data to be transmitted (A::100, End.WSID=F::100), (F::100, End.WSID=B::100) and (B::100, End.WSID=H::100), indicating that the destination transmission address is H, and further indicating that the destination network device is H.

[0122] In this embodiment, when the next network device does not belong to the destination network device of the data to be transmitted, the next network device is used as the network device, and the process jumps to the step of receiving the data to be transmitted transmitted by the network device through the corresponding colored light wavelength until the next network device belongs to the destination network device of the data to be transmitted. This is conducive to ensuring the smooth transmission of the data to be transmitted. At the same time, there is no need to deploy more routers or switches to participate in data transmission, which is conducive to reducing data transmission costs.

[0123] In one embodiment, Figure 5 As shown, another data transmission method is provided, which is applied to Figure 2 The wavelength selective switch device in FIG. 1 is used as an example to illustrate the process, including the following steps:

[0124] Step S501: receiving a mapping table between wavelength frequency and reflection direction sent by a controller; and confirming the mapping table between wavelength frequency and reflection direction as a first mapping table.

[0125] Step S502: receiving data to be transmitted from a network device via a corresponding colored light wavelength; the colored light wavelength corresponds to a next transmission address of the network device, and the next transmission address is determined according to the data to be transmitted.

[0126] Step S503, obtaining the wavelength frequency of the colored light wavelength; querying the first mapping table to obtain the reflection direction corresponding to the wavelength frequency as the reflection direction corresponding to the colored light wavelength; the first mapping table records the mapping relationship between the wavelength frequency and the reflection direction.

[0127] The reflection direction is used to point to the next network device corresponding to the next transmission address; the network device and the next network device belong to the same network device layer.

[0128] Step S504 : transmitting the data to be transmitted to the next network device according to the reflection direction via the colored light wavelength.

[0129] Step S505 , identifying a transmission address from the data to be transmitted; identifying a destination transmission address from the transmission address, and confirming the network device corresponding to the destination transmission address as the destination network device of the data to be transmitted.

[0130] Step S506, when the next network device is not the destination network device, the next network device is used as the network device, and the process jumps to the step of receiving the data to be transmitted transmitted by the network device via the corresponding colored light wavelength until the next network device becomes the destination network device for the data to be transmitted.

[0131] The data transmission method provided in the above embodiment transmits the data to be transmitted by sending and reflecting colored light wavelengths through wavelength selection switch devices and network devices in the same network device layer until the data to be transmitted is transmitted to the destination network device, that is, through the network architecture composed of wavelength selection switch devices and network devices in the same network device layer, the transmission of the entire data packet can be achieved through optical transmission, without the need to use the Spine-Leaf network architecture composed of routers or three-layer switches, thereby reducing the deployment of routers or switches in the Spine network layer, thereby reducing the complexity of the network architecture, and further reducing the network architecture cost.

[0132] In one embodiment, Figure 6 As shown, another data transmission method is provided, which is applied to Figure 2 The network device in the example is used to illustrate the process, including the following steps:

[0133] Step S601: Determine the next transmission address of the network device according to the data to be transmitted.

[0134] Step S602: determining the colored light wavelength corresponding to the next transmission address of the network device.

[0135] Step S603: Transmit the data to be transmitted to the wavelength selective switch device via the colored light wavelength.

[0136] Among them, the wavelength selection switch device is used to receive the data to be transmitted by the network device through the colored light wavelength, determine the reflection direction corresponding to the colored light wavelength, and transmit the data to be transmitted to the next network device corresponding to the next transmission address through the colored light wavelength according to the reflection direction, take the next network device as the network device, and jump to the step of receiving the data to be transmitted transmitted by the network device through the colored light wavelength until the next network device is the destination network device for the data to be transmitted; the reflection direction is used to point to the next network device corresponding to the next transmission address, and the network device and the next network device belong to the same network device layer.

[0137] Specifically, after receiving the data to be transmitted, the network device determines its next transmission address based on the transmission address carried in the data to be transmitted. For example, network device A, which receives the data to be transmitted, identifies the transmission address as A→F→B→H from the transmission instructions (A::100, End.WSID=F::100), (F::100, End.WSID=B::100), and (B::100, End.WSID=H::100) of the data to be transmitted, and thus determines that the next transmission address of network device A is F. The network device then queries the mapping relationship between transmission addresses and color light wavelengths, determines the color light wavelength corresponding to the network device's next transmission address, and transmits the data to be transmitted to the wavelength selective switch device via this color light wavelength. The wavelength selection switch device receives the data to be transmitted transmitted by the network device through the corresponding colored light wavelength, determines the reflection direction corresponding to the colored light wavelength, transmits the data to be transmitted to the next network device corresponding to the next transmission address through the colored light wavelength according to the reflection direction, takes the next network device as the network device, and jumps to the step of receiving the data to be transmitted transmitted by the network device through the corresponding colored light wavelength, and continuously repeats steps S301 to S303 until the next network device is the destination network device for the data to be transmitted, and then stops transmitting the data to be transmitted.

[0138] The data transmission method provided in the above embodiment uses a network architecture composed of wavelength selection switch devices and network devices in the same network device layer, and can realize the transmission of the entire data packet through optical transmission. There is no need to use the Spine-Leaf network architecture composed of routers or three-layer switches, thereby reducing the deployment of routers or switches in the Spine network layer, thereby reducing the complexity of the network architecture, and further reducing the cost of the network architecture.

[0139] In one embodiment, the above-mentioned step S602, determining the colored light wavelength corresponding to the next transmission address of the network device, specifically includes the following contents: querying the second mapping table to obtain the wavelength frequency corresponding to the next transmission address of the network device; the second mapping table records the mapping relationship between the transmission address and the wavelength frequency; and using the colored light wavelength corresponding to the wavelength frequency as the colored light wavelength corresponding to the next transmission address of the network device.

[0140] Among them, different transmission addresses correspond to different wavelength frequencies; different wavelength frequencies correspond to different wavelengths.

[0141] The second mapping table includes mapping relationships between multiple sets of transmission addresses and wavelength frequencies. For example, transmission address F corresponds to wavelength frequency 193.100 THz, transmission address H corresponds to wavelength frequency 194.100 THz, and transmission address B corresponds to wavelength frequency 195.100 THz.

[0142] Specifically, the network device queries the second mapping table that records the mapping relationship between the transmission address and the wavelength frequency according to the next transmission address of the network device, and obtains the wavelength frequency corresponding to the next transmission address of the network device; obtains the colored light wavelength corresponding to the wavelength frequency, and uses the colored light wavelength corresponding to the wavelength frequency as the colored light wavelength corresponding to the next transmission address of the network device.

[0143] For example, assuming that the next transmission address of the network device is F, and in the second mapping table, the transmission address F corresponds to the wavelength frequency 193.100THz, indicating that the wavelength frequency corresponding to the next transmission address of the network device is 193.100THz, and further indicating that the colored light wavelength corresponding to the next transmission address of the network device is the colored light wavelength of 193.100THz.

[0144] In this embodiment, by querying the second mapping table, the colored light wavelength corresponding to the next transmission address of the network device is determined, which is conducive to accurately transmitting the data to be transmitted to the wavelength selection switch device through the colored light wavelength, avoiding data transmission errors, and thus improving data transmission accuracy.

[0145] In one embodiment, the above step S602, before determining the colored light wavelength corresponding to the next transmission address of the network device, also includes the step of obtaining a second mapping table, which specifically includes the following contents: receiving the mapping table between the transmission address and the wavelength frequency issued by the controller; confirming the mapping table between the transmission address and the wavelength frequency as the second mapping table.

[0146] In the same network device layer, each network device receives the same second mapping table. It should be noted that the second mapping table can be updated according to actual conditions.

[0147] Specifically, the network device receives the mapping table between the transmission address and the wavelength frequency sent by the controller, confirms the mapping table between the transmission address and the wavelength frequency as the second mapping table, and stores it locally.

[0148] In this embodiment, by receiving the second mapping table between the transmission address and the wavelength frequency issued by the controller, it is beneficial to accurately determine the color light wavelength corresponding to the next transmission address of the network device by querying the second mapping table, thereby improving the accuracy of determining the color light wavelength.

[0149] In one embodiment, the above step S603, transmitting the data to be transmitted to the wavelength selection switch device via the colored light wavelength, specifically includes the following contents: utilizing the colored light interface of the network device to output the colored light wavelength to transmit the data to be transmitted to the wavelength selection switch device via the colored light wavelength.

[0150] Among them, each network device is equipped with a color optical interface, such as a router color optical interface, a switch color optical interface, etc.

[0151] Specifically, the network device uses the colored light interface of the network device to output the colored light wavelength corresponding to the next transmission address of the network device, so as to transmit the data to be transmitted to the wavelength selection switch device through the colored light wavelength.

[0152] In this embodiment, the colored light interface of the network device is used to output the colored light wavelength, so that the data to be transmitted is transmitted to the wavelength selection switch device through the colored light wavelength, thereby achieving the purpose of transmitting the data to be transmitted to the wavelength selection switch device through optical transmission. During the entire data transmission process, there is no need to deploy more routers or switches to participate in the data transmission, thereby reducing the data transmission cost.

[0153] In one embodiment, Figure 7 As shown, another data transmission method is provided, which is applied to Figure 2 The network device in the example is used to illustrate the process, including the following steps:

[0154] Step S701: receiving a mapping table between transmission addresses and wavelength frequencies issued by a controller; and confirming the mapping table between transmission addresses and wavelength frequencies as a second mapping table.

[0155] Step S702: Determine the next transmission address of the network device according to the data to be transmitted.

[0156] Step S703, query the second mapping table to obtain the wavelength frequency corresponding to the next transmission address of the network device; the second mapping table records the mapping relationship between the transmission address and the wavelength frequency; and use the colored light wavelength corresponding to the wavelength frequency as the colored light wavelength corresponding to the next transmission address of the network device.

[0157] Step S704: using the colored light interface of the network device to output a colored light wavelength, so as to transmit the data to be transmitted to the wavelength selective switch device via the colored light wavelength.

[0158] Among them, the wavelength selection switch device is used to receive the data to be transmitted by the network device through the colored light wavelength, determine the reflection direction corresponding to the colored light wavelength, and transmit the data to be transmitted to the next network device corresponding to the next transmission address through the colored light wavelength according to the reflection direction, take the next network device as the network device, and jump to the step of receiving the data to be transmitted transmitted by the network device through the colored light wavelength until the next network device is the destination network device for the data to be transmitted; the reflection direction is used to point to the next network device corresponding to the next transmission address, and the network device and the next network device belong to the same network device layer.

[0159] The data transmission method provided in the above embodiment uses a network architecture composed of wavelength selection switch devices and network devices in the same network device layer, and can realize the transmission of the entire data packet through optical transmission. There is no need to use the Spine-Leaf network architecture composed of routers or three-layer switches, thereby reducing the deployment of routers or switches in the Spine network layer, thereby reducing the complexity of the network architecture, and further reducing the cost of the network architecture.

[0160] In one embodiment, in order to more clearly illustrate the data transmission method provided by the embodiment of the present application, the data transmission method is specifically described below with a specific embodiment. In one embodiment, the present application also provides an SRv6 forwarding optimization method that combines the color light interface of the router / switch and the wavelength selection switch. Based on the definition of SRv6 Fuction, the data packet is locally routed and the color light wavelength mapping table is searched, and the data packet is sent through different color light wavelengths; at the same time, the wavelength selection switch is used for light reflection to forward the data packet to different destination routers or destination switches; this method can reduce the deployment of routers or switches at the Spine level, reduce the complexity of the network, improve the network scalability, and reduce costs.

[0161] Specifically, the colored optical interface of a router or Layer 3 switch can adjust its output wavelength. Different wavelengths are set to different reflection directions on the wavelength selective switch, allowing the emitted waves to be reflected to the corresponding destination device. The controller sends a mapping table of IP (Internet Protocol) addresses and wavelengths to the leaf nodes, and a mapping table of wavelengths and reflection angles to the wavelength selective switch. Furthermore, an End.W SID command is added to the SRv6 function command to forward packets using the specified wavelength based on the mapping table of the local next-hop address and optical wavelength.

[0162] For example, refer to Figure 4A's next-hop SID (Segment Identifier) ​​is End.W SID = F::100. Based on the End.W directive, a local table lookup based on F::100 determines the transmission wavelength to be 193.100 THz. A then sends the traffic to the wavelength selective switch at 193.100 THz. The wavelength selective switch reflects the 193.100 THz optical signal at a preset angle toward F. F's next-hop SID is End.WSID = B::100. Based on the End.W directive, a local table lookup based on B::100 determines the transmission wavelength to be 195.100 THz. F then sends the traffic to the wavelength selective switch at 195.100 THz. The wavelength selective switch reflects the 195.100 THz optical signal at a preset angle toward B. B's next-hop SID is End.W SID = H::100. Based on the End.W directive, a local table lookup based on H::100 determines the transmission wavelength to be 194.100 THz. B then sends the traffic at 194.100 THz to the wavelength selective switch. The wavelength selective switch reflects the 194.100 THz optical signal at a preset angle toward H.

[0163] The above embodiments can achieve the following technical effects: (1) reduce the deployment of routers or three-layer switches and reduce networking costs; (2) can be used to implement service chains in scenarios such as local areas, IDC networks, and cloud networks; (3) achieve the purpose of IP and optical transmission synergy.

[0164] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0165] Based on the same inventive concept, embodiments of the present application further provide a data transmission device for implementing the aforementioned data transmission method. The implementation solution provided by this device is similar to the implementation solution described in the aforementioned method. Therefore, the specific limitations of one or more data transmission device embodiments provided below can be found in the above-mentioned limitations of the data transmission method and will not be further elaborated here.

[0166] In one embodiment, Figure 8 As shown, a data transmission device is provided, including: a first receiving module 810, a direction determination module 820, a data transmission module 830 and a second receiving module 840, wherein:

[0167] The first receiving module 810 is used to receive data to be transmitted transmitted by the network device via the corresponding colored light wavelength; the colored light wavelength corresponds to the next transmission address of the network device, and the next transmission address is determined according to the data to be transmitted.

[0168] The direction determination module 820 is used to determine the reflection direction corresponding to the wavelength of the colored light; the reflection direction is used to point to the next network device corresponding to the next transmission address; the network device and the next network device belong to the same network device layer.

[0169] The data transmission module 830 is used to transmit the data to be transmitted to the next network device according to the reflection direction via the colored light wavelength.

[0170] The second receiving module 840 is configured to take the next network device as the network device and jump to the step of receiving the data to be transmitted transmitted by the network device via the corresponding colored light wavelength until the next network device becomes the destination network device for the data to be transmitted.

[0171] In one embodiment, the direction determination module 820 is also used to obtain the wavelength frequency of the colored light wavelength; query the first mapping table to obtain the reflection direction corresponding to the wavelength frequency as the reflection direction corresponding to the colored light wavelength; the first mapping table records the mapping relationship between the wavelength frequency and the reflection direction.

[0172] In one embodiment, the data transmission device provided in the present application further includes a first confirmation module for receiving a mapping table between wavelength frequency and reflection direction sent by the controller; and confirming the mapping table between wavelength frequency and reflection direction as a first mapping table.

[0173] In one embodiment, the data transmission device provided by the present application further includes a device confirmation module, which is used to identify a transmission address from the data to be transmitted; identify a destination transmission address from the transmission address, and confirm the network device corresponding to the destination transmission address as the destination network device of the data to be transmitted;

[0174] The second receiving module 840 is further configured to, when the next network device does not belong to the destination network device, use the next network device as the network device and jump to the step of receiving the data to be transmitted transmitted by the network device via the corresponding colored light wavelength.

[0175] In one embodiment, Figure 9As shown, another data transmission device is provided, including: an address determination module 910, a wavelength determination module 920 and a data sending module 930, wherein:

[0176] The address determination module 910 is configured to determine the next transmission address of the network device according to the data to be transmitted.

[0177] The wavelength determination module 920 is used to determine the wavelength of the colored light corresponding to the next transmission address of the network device.

[0178] The data sending module 930 is used to transmit the data to be transmitted to the wavelength selection switch device via the colored light wavelength; the wavelength selection switch device is used to receive the data to be transmitted transmitted by the network device via the colored light wavelength, determine the reflection direction corresponding to the colored light wavelength, and transmit the data to be transmitted to the next network device corresponding to the next transmission address via the colored light wavelength according to the reflection direction, use the next network device as the network device, and jump to the step of receiving the data to be transmitted transmitted by the network device via the colored light wavelength until the next network device is the destination network device for the data to be transmitted; the reflection direction is used to point to the next network device corresponding to the next transmission address, and the network device and the next network device belong to the same network device layer.

[0179] In one embodiment, the wavelength determination module 920 is further used to query the second mapping table to obtain the wavelength frequency corresponding to the next transmission address of the network device; the second mapping table records the mapping relationship between the transmission address and the wavelength frequency; and the colored light wavelength corresponding to the wavelength frequency is used as the colored light wavelength corresponding to the next transmission address of the network device.

[0180] In one embodiment, the data transmission device provided in the present application further includes a second confirmation module for receiving a mapping table between transmission addresses and wavelength frequencies issued by the controller; and confirming the mapping table between transmission addresses and wavelength frequencies as a second mapping table.

[0181] In one embodiment, the data sending module 930 is further configured to utilize the colored light interface of the network device to output a colored light wavelength, so as to transmit the data to be transmitted to the wavelength selection switch device via the colored light wavelength.

[0182] Each module in the above-mentioned data transmission device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0183] In one embodiment, Figure 2As shown, the present application further provides a network system, which includes: a wavelength selective switch device 201, and a network device layer, wherein the network device layer includes a network device 202.

[0184] in:

[0185] The network device 202 is used to determine the next transmission address of the network device 202 according to the data to be transmitted, determine the colored light wavelength corresponding to the next transmission address of the network device 202, and transmit the data to be transmitted to the wavelength selection switch device 201 via the colored light wavelength.

[0186] The wavelength selection switch device 201 is used to receive the data to be transmitted transmitted by the network device 202 via the colored light wavelength, determine the reflection direction corresponding to the colored light wavelength, and transmit the data to be transmitted to the network device layer via the colored light wavelength according to the reflection direction. The next network device corresponding to the next transmission address uses the next network device as the network device 202 and jumps to the step of receiving the data to be transmitted transmitted by the network device 202 via the colored light wavelength until the next network device is the destination network device for the data to be transmitted; the reflection direction is used to point to the next network device corresponding to the next transmission address.

[0187] It should be noted that the network system further includes a controller, which is configured to deliver the first mapping table to the wavelength selective switch device 201 and deliver the second mapping table to the network device 202 .

[0188] The above embodiment uses a network architecture composed of wavelength selection switch devices and network devices in the same network device layer, and can realize the transmission of the entire data packet through optical transmission, without the need to use the Spine-Leaf network architecture composed of routers or three-layer switches, thereby reducing the deployment of routers or switches in the Spine network layer, thereby reducing the complexity of the network architecture, and further reducing the network architecture cost.

[0189] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 10As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a data transmission method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse.

[0190] Those skilled in the art will understand that Figure 10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0191] In one embodiment, a computer device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.

[0192] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0193] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0194] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions.

[0195] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, etc., but are not limited to these.

[0196] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0197] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A data transmission method, characterized in that: Applied to a wavelength selective switch device, the method includes: Receiving data to be transmitted from a network device via a corresponding colored light wavelength; the colored light wavelength corresponds to a next transmission address of the network device, the next transmission address being determined based on the data to be transmitted; the data to be transmitted carries the transmission address to be passed; determining a reflection direction corresponding to the colored light wavelength; the reflection direction is used to point to a next network device corresponding to the next transmission address; the network device and the next network device belong to the same network device layer; Transmitting the data to be transmitted to the next network device via the colored light wavelength and in the reflection direction; The next network device is used as a network device, and the process jumps to the step of receiving the data to be transmitted transmitted by the network device through the corresponding colored light wavelength until the next network device becomes the destination network device of the data to be transmitted.

2. The method according to claim 1, characterized in that The determining of the reflection direction corresponding to the colored light wavelength includes: Obtaining the wavelength frequency of the colored light wavelength; A first mapping table is queried to obtain a reflection direction corresponding to the wavelength frequency as the reflection direction corresponding to the wavelength of the colored light; the first mapping table records a mapping relationship between the wavelength frequency and the reflection direction.

3. The method according to claim 2, characterized in that Before determining the reflection direction corresponding to the wavelength of the colored light, the method further includes: Receive the mapping table between wavelength frequency and reflection direction sent by the controller; The mapping table between wavelength frequency and reflection direction is confirmed as the first mapping table.

4. The method according to claim 1, wherein Before the next network device is used as a network device and the process jumps to the step of receiving the data to be transmitted transmitted by the network device through the corresponding colored light wavelength, and before the next network device becomes the destination network device, the process further includes: Identifying a transmission address from the data to be transmitted; Identifying a destination transmission address from the transmission address, and confirming the network device corresponding to the destination transmission address as the destination network device of the data to be transmitted; The step of using the next network device as a network device and jumping to the step of receiving the data to be transmitted transmitted by the receiving network device via the corresponding colored light wavelength includes: In the case that the next network device does not belong to the destination network device, the next network device is used as the network device, and the process jumps to the step of receiving the data to be transmitted transmitted by the network device via the corresponding colored light wavelength.

5. A data transmission method, characterized in that: Applied to a network device, the method includes: Determining the next transmission address of the network device according to the data to be transmitted; the data to be transmitted carries the transmission address to be passed; Determining a colored light wavelength corresponding to a next transmission address of the network device; The data to be transmitted is transmitted to a wavelength selection switch device via the colored light wavelength; the wavelength selection switch device is used to receive the data to be transmitted transmitted by the network device via the colored light wavelength, determine the reflection direction corresponding to the colored light wavelength, and transmit the data to be transmitted to the next network device corresponding to the next transmission address via the colored light wavelength according to the reflection direction, use the next network device as the network device, and jump to the step of receiving the data to be transmitted transmitted by the network device via the colored light wavelength until the next network device is the destination network device for the data to be transmitted; the reflection direction is used to point to the next network device corresponding to the next transmission address, and the network device and the next network device belong to the same network device layer.

6. The method according to claim 5, characterized in that The determining of the colored light wavelength corresponding to the next transmission address of the network device includes: Querying a second mapping table to obtain a wavelength frequency corresponding to a next transmission address of the network device; wherein the second mapping table records a mapping relationship between the transmission address and the wavelength frequency; The colored light wavelength corresponding to the wavelength frequency is used as the colored light wavelength corresponding to the next transmission address of the network device.

7. The method according to claim 6, characterized in that Before determining the colored light wavelength corresponding to the next transmission address of the network device, the method further includes: Receive the mapping table between the transmission address and wavelength frequency issued by the controller; The mapping table between the transmission address and the wavelength frequency is confirmed as the second mapping table.

8. The method according to claim 5, characterized in that The method of transmitting the data to be transmitted to the wavelength selective switch device via the colored light wavelength includes: The colored light interface of the network device is utilized to output the colored light wavelength, so as to transmit the data to be transmitted to the wavelength selection switch device via the colored light wavelength.

9. A data transmission device, characterized in that: Applicable to a wavelength selective switch device, the device comprises: A first receiving module is configured to receive data to be transmitted from a network device via a corresponding colored light wavelength; the colored light wavelength corresponds to a next transmission address of the network device, the next transmission address being determined based on the data to be transmitted; the data to be transmitted carries the transmission address to be passed; a direction determination module, configured to determine a reflection direction corresponding to the colored light wavelength; the reflection direction is configured to point to a next network device corresponding to the next transmission address; the network device and the next network device belong to the same network device layer; A data transmission module, configured to transmit the data to be transmitted to the next network device via the colored light wavelength and in the reflection direction; The second receiving module is used to take the next network device as the network device and jump to the step of receiving the data to be transmitted transmitted by the network device through the corresponding colored light wavelength until the next network device is the destination network device of the data to be transmitted.

10. A data transmission device, characterized in that: Applied to network equipment, the device includes: An address determination module, configured to determine the next transmission address of the network device according to the data to be transmitted; the data to be transmitted carries the transmission address to be passed; A wavelength determination module, configured to determine a colored light wavelength corresponding to a next transmission address of the network device; A data sending module is used to transmit the data to be transmitted to a wavelength selection switch device via the colored light wavelength; the wavelength selection switch device is used to receive the data to be transmitted transmitted by the network device via the colored light wavelength, determine the reflection direction corresponding to the colored light wavelength, and transmit the data to be transmitted to the next network device corresponding to the next transmission address via the colored light wavelength according to the reflection direction, use the next network device as the network device, and jump to the step of receiving the data to be transmitted transmitted by the network device via the colored light wavelength until the next network device is the destination network device for the data to be transmitted; the reflection direction is used to point to the next network device corresponding to the next transmission address, and the network device and the next network device belong to the same network device layer.

11. A network system, characterized in that: The system includes: a wavelength selective switch device, and a network device layer, wherein the network device layer includes network devices; The network device is configured to determine, based on the data to be transmitted, a next transmission address of the network device, determine a colored light wavelength corresponding to the next transmission address of the network device, and transmit the data to be transmitted to the wavelength selective switch device via the colored light wavelength; the data to be transmitted carries the transmission address to be passed; The wavelength selection switch device is used to receive the data to be transmitted transmitted by the network device through the colored light wavelength, determine the reflection direction corresponding to the colored light wavelength, and transmit the data to be transmitted to the network device layer through the colored light wavelength according to the reflection direction. The next network device corresponding to the next transmission address uses the next network device as the network device and jumps to the step of receiving the data to be transmitted transmitted by the network device through the colored light wavelength until the next network device is the destination network device of the data to be transmitted; the reflection direction is used to point to the next network device corresponding to the next transmission address.

12. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Wavelength-selective optical switch

    CN102590953A

  • Optical module and network equipment

    CN107342821A