CN111885630B - Data transmission method and communication device - Google Patents
Data transmission method and communication device Download PDFInfo
- Publication number
- CN111885630B CN111885630B CN202010622056.6A CN202010622056A CN111885630B CN 111885630 B CN111885630 B CN 111885630B CN 202010622056 A CN202010622056 A CN 202010622056A CN 111885630 B CN111885630 B CN 111885630B
- Authority
- CN
- China
- Prior art keywords
- network
- network device
- data
- data packet
- transmission path
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q11/0067—Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q2011/0079—Operation or maintenance aspects
- H04Q2011/0081—Fault tolerance; Redundancy; Recovery; Reconfigurability
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种数据传输方法及装置。The present application relates to the technical field of communications, and in particular to a data transmission method and device.
背景技术Background technique
随着第五代(5th genertation 5G)技术的不断发展,5G承载开始采用互联协议无线接入网(internet protocol radio access network,IPRAN)网络与分组增强型光传送网(packet enhanced optical transport network,PeOTN)网络混合组网的方式实现数据传输。例如,接入层的设备之间可以通过PeOTN网络互通;核心层的设备之间可以通过IPRAN网络互通。其中,PeOTN网络与IPRAN网络可以通过用户网络接口(user networkinterface,UNI)连接,以实现PeOTN网络与IPRAN网络的互通。With the continuous development of the fifth generation (5th generation 5G) technology, the 5G bearer has begun to adopt the internet protocol radio access network (IPRAN) network and the packet enhanced optical transport network (PeOTN). ) network hybrid network to achieve data transmission. For example, devices at the access layer can communicate with each other through the PeOTN network; devices at the core layer can communicate with each other through the IPRAN network. Wherein, the PeOTN network and the IPRAN network may be connected through a user network interface (user network interface, UNI), so as to realize intercommunication between the PeOTN network and the IPRAN network.
对于采用IPRAN网络与PeOTN网络混合组网发生故障时,网络保护尤为重要。通过网络保护可以保证IPRAN网络与PeOTN网络之间数据的正常传输。但是现有的网络保护方法大多都是针对单点故障。对于多点故障的保护,例如,若汇聚层设备两侧的链路同时发生故障,并没有网络保护方法。因此,当采用IPRAN网络与PeOTN网络混合组网中出现多点故障时,如何保证数据的正常传输成为亟待解决的问题。Network protection is particularly important when failures occur in the mixed networking of the IPRAN network and the PeOTN network. The normal transmission of data between the IPRAN network and the PeOTN network can be guaranteed through network protection. But most of the existing network protection methods are aimed at single point of failure. For the protection of multi-point failures, for example, if the links on both sides of the aggregation layer device fail at the same time, there is no network protection method. Therefore, how to ensure the normal transmission of data becomes an urgent problem to be solved when multi-point failures occur in the mixed networking of the IPRAN network and the PeOTN network.
发明内容Contents of the invention
本申请提供一种数据传输方法及通信装置,用于当采用IPRAN网络与PeOTN网络混合组网中出现多点故障时,保证数据的正常传输。The present application provides a data transmission method and a communication device, which are used to ensure the normal transmission of data when multi-point faults occur in the mixed networking of the IPRAN network and the PeOTN network.
为达到上述目的,本申请用如下技术方案:In order to achieve the above object, the application uses the following technical solutions:
第一方面,提供了一种数据传输方法,该方法包括:In a first aspect, a data transmission method is provided, the method comprising:
第一网络中的第一网络设备接收来自第二网络中与第一网络设备相连的第二网络设备的包括第一数据以及用于指示第二网络中与第二网络设备相连的链路出现故障/中断的第一标识的第一数据包,第二网络设备为第一数据包的第一传输路径上的设备,第一网络与第二网络为使用不同网络协议的网络;第一网络设备通过第二传输路径向第二网络中的设备发送第二数据,第二传输路径上的设备不包括第二网络设备。The first network device in the first network receives the first data from the second network device connected to the first network device in the second network and is used to indicate that a link connected to the second network device in the second network fails. /Interrupt the first data packet of the first identification, the second network device is the device on the first transmission path of the first data packet, the first network and the second network are networks using different network protocols; the first network device passes The second transmission path sends the second data to devices in the second network, and the devices on the second transmission path do not include the second network device.
基于第一方面的方法,当第一网络设备接收到第二网络设备的用于指示第二网络中与第二网络设备相连的链路出现故障/中断的第一标识时,第一网络设备可以通过第二传输路径传输第一数据。由于第二传输路径上的设备不包括第二网络设备,也即,第二传输路径可以正常传输第一数据。如此,当第二网络出现多点故障时,第一网络设备可以正常的将第二网络设备所需的数据发送给第二网络中设备,保证了第一网络与第二网络之间的数据的正常传输。Based on the method in the first aspect, when the first network device receives the first identification from the second network device indicating that the link connected to the second network device in the second network is faulty/interrupted, the first network device may The first data is transmitted through the second transmission path. Since the devices on the second transmission path do not include the second network device, that is, the second transmission path can normally transmit the first data. In this way, when a multi-point failure occurs in the second network, the first network device can normally send the data required by the second network device to the devices in the second network, ensuring the data exchange between the first network and the second network. Normal transmission.
第二方面,提供了一种通信装置,该通信装置包括通信单元。通信单元,用于接收来自第二网络设备的包括第一数据以及用于指示第二网络中与第二网络设备相连的链路出现故障/中断的第一标识的第一数据包,第一网络设备为第一网络中的设备,第二网络设备为第一数据包的第一传输路径上的设备,第二网络设备为第二网络中的设备,第一网络与第二网络为不同的网络;通信单元,还用于通过第二传输路径向第二网络中的设备发送第一数据,第二传输路径上的设备不包括第二网络设备。In a second aspect, a communication device is provided, and the communication device includes a communication unit. A communication unit, configured to receive a first data packet from the second network device including the first data and a first identification indicating that a link connected to the second network device in the second network is faulty/interrupted, the first network The device is a device in the first network, the second network device is a device on the first transmission path of the first data packet, the second network device is a device in the second network, and the first network and the second network are different networks The communication unit is further configured to send the first data to devices in the second network through the second transmission path, and the devices on the second transmission path do not include the second network device.
第三方面,提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当所述指令被执行时,实现如第一方面所述的方法。In a third aspect, a computer-readable storage medium is provided, and instructions are stored in the computer-readable storage medium, and when the instructions are executed, the method as described in the first aspect is implemented.
第四方面,提供了一种芯片,该芯片包括至少一个处理器及通信接口,通信接口和所述至少一个处理器耦合,至少一个处理器用于运行计算机程序或指令,以实现第一方面所述的方法。In a fourth aspect, a chip is provided, the chip includes at least one processor and a communication interface, the communication interface is coupled to the at least one processor, and the at least one processor is used to run computer programs or instructions, so as to implement the first aspect. Methods.
第五方面,提供了一种数据传输方法,该方法包括:第二网络中的第二网络设备接收来自第一网络中的第一网络设备的包括第二数据以,第一网络设备与第二网络设备通信连接,第一网络与第二网络为使用不同网络协议的网络;若第二网络设备检测到第二网络中与第二网络设备相连的链路出现故障/中断,第二网络设备向第一网络设备发送包括第一数据以及用于指示第二网络中与第二网络设备相连的链路出现故障/中断的第一标识的第一数据包。According to a fifth aspect, a data transmission method is provided, and the method includes: a second network device in the second network receives the second data from the first network device in the first network, and the first network device communicates with the second The network devices are connected by communication, the first network and the second network are networks using different network protocols; if the second network device detects that the link connected to the second network device in the second network is faulty/interrupted, the second network device sends The first network device sends a first data packet including first data and a first identifier for indicating that a link connected to the second network device in the second network is faulty/interrupted.
基于第五方面的方法,若第二网络设备检测到第二网络中与第二网络设备相连的链路出现故障/中断,则第二网络设备向第一网络设备发送用于指示第二网络中与第二网络设备相连的链路出现故障/中断的标识或信息,以使得第一网络设备接收到该标识或信息时,通过其他正常的传输路径向第二网络中的设备发送第一数据。如此,当第二网络出现多点故障时,第一网络设备可以正常的将第二网络设备所需的数据发送给第二网络中设备,保证了第一网络与第二网络之间的数据的正常传输。Based on the method in the fifth aspect, if the second network device detects that the link connected to the second network device in the second network is faulty/interrupted, the second network device sends a message to the first network device indicating that the link in the second network The identification or information indicating that the link connected to the second network device is faulty/interrupted, so that when the first network device receives the identification or information, it sends the first data to the device in the second network through other normal transmission paths. In this way, when a multi-point failure occurs in the second network, the first network device can normally send the data required by the second network device to the devices in the second network, ensuring the data exchange between the first network and the second network. Normal transmission.
第六方面,提供了一种通信装置,该装置包括通信单元;According to a sixth aspect, a communication device is provided, and the device includes a communication unit;
通信单元,用于接收来自第一网络中的第一网络设备的包括第一数据以及第一地址信息的第二数据包,第一网络设备与第二网络设备通信连接,第一地址信息为接收第一数据的设备的地址信息,第一网络与第二网络为使用不同网络协议的网络;a communication unit, configured to receive a second data packet including first data and first address information from a first network device in the first network, the first network device is communicatively connected to the second network device, and the first address information is for receiving The address information of the device of the first data, the first network and the second network are networks using different network protocols;
通信单元,还用于若第二网络设备检测到第二网络中与第二网络设备相连的链路出现故障/中断,向第一网络设备发送包括第一数据以及用于指示第二网络中与第二网络相连的链路出现故障/中断的第一标识的第一数据包。The communication unit is further configured to, if the second network device detects that a link connected to the second network device in the second network is faulty/interrupted, send to the first network device including the first data and a link indicating that the link connected to the second network device in the second network The link connected to the second network is faulty/interrupted with the first identification of the first data packet.
第七方面,提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当所述指令被执行时,实现如第五方面所述的方法。In a seventh aspect, a computer-readable storage medium is provided, and instructions are stored in the computer-readable storage medium, and when the instructions are executed, the method according to the fifth aspect is implemented.
第八方面,提供了一种芯片,该芯片包括至少一个处理器及通信接口,通信接口和所述至少一个处理器耦合,至少一个处理器用于运行计算机程序或指令,以实现第五方面所述的方法。In an eighth aspect, a chip is provided, the chip includes at least one processor and a communication interface, the communication interface is coupled to the at least one processor, and the at least one processor is used to run computer programs or instructions, so as to implement the fifth aspect. Methods.
其中,上述提供的装置或计算机可读存储介质或计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文提供的对应的方法中对应方案的有益效果,此处不再赘述。Wherein, the device or computer-readable storage medium or computer program product or chip provided above is used to execute the corresponding method provided above, therefore, the beneficial effects that it can achieve can refer to the corresponding method provided above The beneficial effects of the corresponding solution will not be repeated here.
附图说明Description of drawings
图1为本申请实施例提供的一种通信网络的简化结构示意图;FIG. 1 is a simplified structural schematic diagram of a communication network provided by an embodiment of the present application;
图2为本申请实施例提供的另一种通信网络的简化结构示意图;FIG. 2 is a simplified structural schematic diagram of another communication network provided by an embodiment of the present application;
图3为本申请实施例提供的又一种通信网络的简化结构示意图;FIG. 3 is a simplified structural schematic diagram of another communication network provided by an embodiment of the present application;
图4为本申请实施例提供的一种通信装置的结构示意图;FIG. 4 is a schematic structural diagram of a communication device provided in an embodiment of the present application;
图5为本申请实施例提供的一种数据传输方法的流程示意图;FIG. 5 is a schematic flow diagram of a data transmission method provided by an embodiment of the present application;
图6为本申请实施例提供的另一种数据传输方法的流程示意图;FIG. 6 is a schematic flow diagram of another data transmission method provided by the embodiment of the present application;
图7为本申请实施例提供的一种通信装置70的结构示意图;FIG. 7 is a schematic structural diagram of a communication device 70 provided in an embodiment of the present application;
图8为本申请实施例提供的一种通信装置80的结构示意图;FIG. 8 is a schematic structural diagram of a communication device 80 provided in an embodiment of the present application;
图9为本申请实施例提供的一种通信系统的结构示意图。FIG. 9 is a schematic structural diagram of a communication system provided by an embodiment of the present application.
具体实施方式Detailed ways
在介绍本申请实施例之前,对本申请实施例涉及的一些名词进行解释:Before introducing the embodiments of the present application, some nouns involved in the embodiments of the present application are explained:
PeOTN网络:是指将传统的光传送网(optical transport network,OTN)和分组传送网(packet transport network,PTN)技术相结合,不仅具有PTN的分组处理能,还具有OTN技术的超大容量带宽和可以进行长距离传输数据的网络。网络侧的设备可以利用PeOTN网络可以完成对数据的采集和发送任务,提升了网络的利用率。其中,PeOTN网络中设备可以使用多协议标签交换传送应用(multi-protocol label switch transport profile,MPLS-TP)协议实现互通。PeOTN network: refers to the combination of traditional optical transport network (OTN) and packet transport network (PTN) technology, not only has the packet processing capability of PTN, but also has the ultra-large capacity bandwidth and A network that can transmit data over long distances. Devices on the network side can use the PeOTN network to complete data collection and transmission tasks, improving network utilization. Wherein, devices in the PeOTN network may use a multi-protocol label switch transport profile (MPLS-TP) protocol to implement intercommunication.
IPRAN网络:是指以互联协议(internet protocol,IP)/MPLS及关键技术为基础,主要面向移动业务承载并兼顾提供二三层通道类业务承载,以省为单位,依托中国电信下一代承载网(China Net Next Carrying Network,CN2)骨干层组成的端到端的业务承载网络。其中,IPRAN网络中设备可以使用MPLS协议实现互通。IPRAN network: refers to the Internet protocol (internet protocol, IP)/MPLS and key technologies as the basis, mainly for mobile service bearer and also provides two-layer and three-layer channel service bearer, with the province as the unit, relying on China Telecom's next-generation bearer network (China Net Next Carrying Network, CN2) is an end-to-end service carrying network composed of the backbone layer. Among them, devices in the IPRAN network can use the MPLS protocol to implement intercommunication.
如图1所示,为本申请实施例提供的一种通信网络的简化示意图。该通信网络可以包括业务网元、核心层、汇聚层、接入层。其中,业务网元可以包括多个网元设备,核心层可以包括多个核心设备,核心设备也可以称为核心节点。汇聚层可以包括多个汇聚设备,汇聚设备也可以称为汇聚节点。其中,该多个汇聚设备中与核心设备连接的汇聚设备的设备类型与该多个汇聚设备中与接入层连接的汇聚设备的设备类型不同。接入层可以包括多个接入设备。该多个接入设备可以包括一级接入点和末端接入点。上述网元设备、核心设备、汇聚设备以及接入设备的功能、设备类型及档次、基础架构可以如表1所示。As shown in FIG. 1 , it is a simplified schematic diagram of a communication network provided by an embodiment of the present application. The communication network may include a service network element, a core layer, a convergence layer, and an access layer. Wherein, the service network element may include multiple network element devices, the core layer may include multiple core devices, and the core device may also be called a core node. The aggregation layer may include multiple aggregation devices, and the aggregation devices may also be called aggregation nodes. Among the plurality of convergence devices, the device type of the convergence device connected to the core device is different from the device type of the convergence device connected to the access layer among the plurality of convergence devices. The access layer may include multiple access devices. The plurality of access devices may include a primary access point and a terminal access point. Table 1 shows the functions, equipment types and grades, and infrastructure of the above-mentioned network element equipment, core equipment, convergence equipment, and access equipment.
表1Table 1
需要说明的是,表1中的设备的设备功能、设备类型及档次、基础架构仅为示例性的,随着网络技术的发展,设备的设备功能、设备类型及档次、基础架构也可以根据需要配置,不予限制。当然,图1和表1中还可以包括其他设备,例如,有源天线处理单元(activeantenna unit,AAU)。其中,AAU的功能,基础架构可以参照现有技术,不予赘述。It should be noted that the device functions, device types and grades, and infrastructure of the devices in Table 1 are only exemplary. With the development of network technology, the device functions, device types, grades, and infrastructure of the devices can also be adjusted according to needs. configuration, without limitation. Of course, other devices may also be included in FIG. 1 and Table 1, for example, an active antenna processing unit (active antenna unit, AAU). Wherein, the function and basic structure of the AAU can refer to the existing technology, and will not be described in detail.
IPRAN网络与PeOTN网络的混合组网:是指将IPRAN网络和PeOTN网络混合组网的方式,例如,如图1所示的网络架构,接入层设备之间、汇聚层中与接入层设备连接的汇聚设备之间可以通过PeOTN网络通信连接;核心层设备之间、汇聚层中与核心层设备连接的汇聚设备之间可以通过IPRAN网络通信连接。Hybrid networking of IPRAN network and PeOTN network: refers to the way of hybrid networking of IPRAN network and PeOTN network. Connected aggregation devices can be connected through PeOTN network communication; core layer devices, and aggregation devices connected to core layer devices in the aggregation layer can be connected through IPRAN network communication.
如图2所示,为本申请实施例提供的另一种通信网络的简化示意图。如图2所示,该通信网络可以包括网络设备210、接入设备(如图2中的接入设备221、接入设备222、接入设备223)、汇聚设备230、汇聚设备240以及承载设备250。其中,承载设备250可以包括5G承载设备和IP承载设备。As shown in FIG. 2 , it is a simplified schematic diagram of another communication network provided by the embodiment of the present application. As shown in FIG. 2, the communication network may include network equipment 210, access equipment (such as
其中,网络设备210可以通过以太网虚拟专线(ethernet virtual private line,EVPL)的方式与接入设备220连接。Wherein, the network device 210 may be connected to the access device 220 through an Ethernet virtual private line (ethernet virtual private line, EVPL).
其中,接入设备220与汇聚设备230可以通过PeOTN网络连接。接入设备220与汇聚设备230之间可以使用静态PW和隧道建立业务。例如,EVPL业务。Wherein, the access device 220 and the converging device 230 may be connected through a PeOTN network. Static PWs and tunnels can be used to establish services between the access device 220 and the aggregation device 230 . For example, EVPL business.
需要说明的是,接入设备221与接入设备222、接入设备223之间具有主备PW,且每个PW配置有LSP1:1。It should be noted that there are active and standby PWs between the
其中,汇聚设备230与汇聚设备240之间可以通过UNI接口连接。汇聚设备240可以通过IPRAN网络连接。Wherein, the convergence device 230 and the convergence device 240 may be connected through a UNI interface. The aggregation device 240 may be connected through an IPRAN network.
需要说明的是,本申请中核心汇聚层配置有三层虚拟专用网(layer virtualprivate network,L3 VPN)。接入层配置有L2 VPN。核心汇聚层的设备可以通过L2转L3的方式,将来自接入层的业务发送至L3 VPN。也即,实现PeOTN网络与IPRAN网络的互通。其中,L2转L3的方式可以参照现有技术,不予赘述。It should be noted that, in this application, the core aggregation layer is configured with a three-layer virtual private network (layer virtual private network, L3 VPN). The access layer is configured with L2 VPN. Devices at the core aggregation layer can transmit services from the access layer to the L3 VPN through L2-to-L3 transfer. That is, the intercommunication between the PeOTN network and the IPRAN network is realized. Wherein, the manner of transferring from L2 to L3 may refer to the prior art, and details are not repeated here.
需要说明的是,本申请实施例中,每个业务根据业务类型可以配置有相应的业务虚拟局域网(virtual local area network,vlan)。当网络设备通过接入网向核心汇聚层发送业务时,网络设备的IP地址与核心汇聚层中的IPRAN网络的下行逻辑子接口一一对应。It should be noted that, in the embodiment of the present application, each service may be configured with a corresponding service virtual local area network (virtual local area network, vlan) according to the service type. When a network device sends a service to the core convergence layer through the access network, the IP address of the network device is in one-to-one correspondence with the downlink logical sub-interfaces of the IPRAN network in the core convergence layer.
下面对IPRAN网络与PeOTN网络之间的业务传输过程进行说明:The following describes the service transmission process between the IPRAN network and the PeOTN network:
1、当PeOTN网络向IPRAN网络发送业务时,接入层的设备可以根据端口(port)+vlan将来自网络设备的业务封装到一个PW,通过隧道传到汇聚层(PeOTN网络)的设备,汇聚层的设备将该业务转发到IPRAN网络;1. When the PeOTN network sends services to the IPRAN network, the device at the access layer can encapsulate the service from the network device into a PW according to the port (port)+vlan, and transmit the service to the device at the aggregation layer (PeOTN network) through the tunnel, and the aggregation Layer equipment forwards the service to the IPRAN network;
2、当IPRAN网络发向PeOTN网络发送业务时,汇聚层(PeOTN网络)的设备识别IPRAN网络的下行逻辑子接口,并将业务封装到PW。然后,汇聚层的设备根据业务对应的下行逻辑子接口以及隧道将业务发送至接入层(PeOTN网络)。接入层的设备根据PW对应的客户侧的port+vlan识别发送至客户侧(或者终端或网络设备)。2. When the IPRAN network sends a service to the PeOTN network, the device at the convergence layer (PeOTN network) identifies the downlink logical sub-interface of the IPRAN network and encapsulates the service into the PW. Then, the device at the aggregation layer sends the service to the access layer (PeOTN network) according to the downlink logical sub-interface and tunnel corresponding to the service. The device at the access layer identifies the port+vlan on the client side corresponding to the PW and sends it to the client side (or terminal or network device).
需要说明的是,接入层的设备与汇聚层的设备之间的三层网关可以按照N:1模型配置。也即,接入层的N个VLAN对IPRAN的一个子接口。该子接口可以为Dot1q VLAN子接口或超级(super)vlan子接口,不予限制。It should be noted that the layer-3 gateway between the device at the access layer and the device at the aggregation layer can be configured according to the N:1 model. That is, N VLANs at the access layer correspond to one sub-interface of the IPRAN. The sub-interface may be a Dot1q VLAN sub-interface or a super (super) vlan sub-interface, without limitation.
网络保护:网络保护是指当网络产生故障时,为了保证业务数据的正常传输,可以通过多种网络保护方式对网络进行保护。例如,该多种网络保护方式可以包括隧道保护、业务保护等。下面对隧道保护以及业务保护进行说明。Network protection: Network protection means that when the network fails, in order to ensure the normal transmission of business data, the network can be protected through various network protection methods. For example, the multiple network protection modes may include tunnel protection, service protection, and so on. The following describes tunnel protection and service protection.
1、隧道保护也可以称为标签转发路径(label switching path,LSP)1:1保护,是IPRAN网络的基本保护方式。隧道保护是指在建立LSP主隧道的同时建立LSP备份隧道,同时将LSP备份隧道下发到转发设备。当主隧道出现故障时,业务可以快速切换到备份隧道承载。1. Tunnel protection can also be called label switching path (label switching path, LSP) 1:1 protection, which is a basic protection mode of the IPRAN network. Tunnel protection refers to establishing the LSP backup tunnel while establishing the LSP primary tunnel, and delivering the LSP backup tunnel to the forwarding device at the same time. When the primary tunnel fails, services can be quickly switched to the backup tunnel.
2、业务保护是指接入层的设备采用伪线(pseudo wire,PW)冗余,汇聚核心层采用的虚拟专用网络快速重路由(virtual private network fast reroute,VPN FRR)的保护方式。其中,PW冗余是指建立主用PW的同时,建立备份PW和迂回PW(BypassPW)。当主PW出现故障时,可以将业务切换到备份PW,之后从BypassPW发送到接收业务的网络设备。2. Service protection refers to the protection mode that the equipment at the access layer adopts pseudowire (Pseudo wire, PW) redundancy, and the aggregation core layer adopts virtual private network fast reroute (VPN FRR). Wherein, PW redundancy refers to establishing a backup PW and a bypass PW (BypassPW) at the same time as establishing an active PW. When the main PW fails, the service can be switched to the backup PW, and then sent from the BypassPW to the network device receiving the service.
当前,对于上述IPRAN网络与PeOTN网络的混合网络发生单点故障时,可以通过多种保护方式进行保护,例如,保护汇聚IPRAN设备故障、IPRAN与PeOTN对接链路故障、PeOTN汇聚点设备故障、IPRAN网内链路或节点故障、PeOTN网络内链路或节点故障等。该多种保护方式可以参照现有技术,不予赘述。At present, when a single point of failure occurs in the mixed network of the above-mentioned IPRAN network and PeOTN network, various protection methods can be used to protect it, for example, the failure of the protection aggregation IPRAN equipment, the failure of the connecting link between IPRAN and PeOTN, the failure of the PeOTN convergence point equipment, and the failure of the IPRAN Link or node failure in the network, link or node failure in the PeOTN network, etc. For the various protection modes, reference may be made to the prior art, and details are not repeated here.
例如,核心汇聚层可以根据隧道层LDP/RSVP-TE协议的部署情况,根据需要配置标签分发协议(label distribution protocol,LDP)FRR/流量工程热备份(trafficengineering hot standby,TE HSB)提供链路保护,配置VPN FRR提供节点保护。For example, the core aggregation layer can configure label distribution protocol (label distribution protocol, LDP) FRR/traffic engineering hot standby (traffic engineering hot standby, TE HSB) to provide link protection according to the deployment of the tunnel layer LDP/RSVP-TE protocol. , configure VPN FRR to provide node protection.
又例如,若核心汇聚层链路发生故障,可以通过LDP FRR/TE Hotstandby切换到备份LSP保证业务正常传输。For another example, if a link at the core aggregation layer fails, LDP FRR/TE Hotstandby can be used to switch to the backup LSP to ensure normal service transmission.
又例如,若汇聚层发生故障,可通过VPN FRR切换到下一跳保护。若核心节点故障,上行流量VPN FRR切换到下一条保护,核心网下行流量通过主备路由保护。For another example, if the aggregation layer fails, it can be switched to the next hop protection through VPN FRR. If the core node fails, the upstream traffic VPN FRR switches to the next protection route, and the core network downstream traffic is protected by the active and standby routes.
又例如,若接入层互联链路故障,IPRAN网络与PeOTN网络之间可以通过地址解析协议(address resolution protocol,ARP)双发或者虚拟路由冗余协议(virtual routerredundancy protocol,VRRP)保护。For another example, if the interconnection link of the access layer fails, the IPRAN network and the PeOTN network can be protected by address resolution protocol (address resolution protocol, ARP) dual transmission or virtual router redundancy protocol (virtual routerredundancy protocol, VRRP).
又例如,若接入层链路故障,PeOTN网络可以采用PW冗余或LSP 1:1保护。For another example, if the link at the access layer fails, the PeOTN network can adopt PW redundancy or LSP 1:1 protection.
需要说明的是,上述单点故障以及单点故障保护方式仅为示例性的,还可以包括其他单点故障以及单点故障保护方式,不予限制。It should be noted that the above-mentioned single point fault and single point fault protection method are only exemplary, and may also include other single point faults and single point fault protection methods, which are not limited.
若上述IPRAN网络与PeOTN网络的混合网络发生多点故障,由于IPRAN网络与PeOTN网络使用不同的网络协议,因此,多点故障的保护较为困难。If the hybrid network of the IPRAN network and the PeOTN network mentioned above has a multi-point fault, since the IPRAN network and the PeOTN network use different network protocols, it is difficult to protect the multi-point fault.
下面结合图3所示的通信网络对通信网络发生多点故障以及多点故障时的保护方法进行说明。In the following, the communication network shown in FIG. 3 will be combined with a description of a multi-point failure and a protection method when a multi-point failure occurs.
如图3所示的通信网络中,该通信网络可以包括第一网络310和第二网络320。其中,第一网络310可以包括第一网络设备311、第一网络设备312、第一网络设备313、第一网络设备314、第一网络设备315、第一网络设备316。第二网络320可以包括第二网络设备321、第二网络设备322、第二网络设备323、第二网络设备324、第二网络设备325。第一网络310可以与第二网络320通信连接。例如,第一网络设备314与第二网络设备323连接,第一网络设备313与第二网络设备325连接。其中,第一网络设备314与第二网络设备323可以通过UNI1接口连接,第一网络设备313与第二网络设备325可以通过UNI2接口连接。当然,第一网络设备314和第二网络设备323、第一网络设备313与第二网络设备325还可以通过其他接口连接,不予限制。In the communication network shown in FIG. 3 , the communication network may include a first network 310 and a second network 320 . Wherein, the first network 310 may include a first network device 311 , a first network device 312 , a first network device 313 , a first network device 314 , a first network device 315 , and a first network device 316 . The second network 320 may include a second network device 321 , a second network device 322 , a second network device 323 , a second network device 324 , and a second network device 325 . The first network 310 may be communicatively connected with the second network 320 . For example, the first network device 314 is connected to the second network device 323 , and the first network device 313 is connected to the second network device 325 . Wherein, the first network device 314 and the second network device 323 may be connected through the UNI1 interface, and the first network device 313 and the second network device 325 may be connected through the UNI2 interface. Of course, the first network device 314 and the second network device 323, and the first network device 313 and the second network device 325 may also be connected through other interfaces, which are not limited.
其中,第一网络设备311通过链路1与第一网络设备316连接,通过链路6与第一网络设备312连接。第一网络设备316通过链路2与第一网络设备315连接。第一网络设备315通过链路3与第一网络设备314连接。第一网络设备314通过链路4与第一网络设备313连接。第一网络设备313通过链路5与第一网络设备312连接。Wherein, the first network device 311 is connected to the first network device 316 through the link 1 and connected to the first network device 312 through the link 6 . The first network device 316 is connected to the first network device 315 through the link 2 . The first network device 315 is connected to the first network device 314 through the link 3 . The first network device 314 is connected to the first network device 313 through a
其中,第二网络设备321通过链路11与第二网络设备322连接,通过链路12与第二网络设备324连接。第二网络设备322通过链路10与第二网络设备323连接,通过链路12与第二网络设备324连接。第二网络设备323通过链路7与第二网络设备325连接。第二网络设备325通过链路8与第二网络设备324连接。Wherein, the second network device 321 is connected to the second network device 322 through the link 11 , and is connected to the second network device 324 through the link 12 . The second network device 322 is connected to the second network device 323 through the link 10 and connected to the second network device 324 through the link 12 . The second network device 323 is connected to the second network device 325 through the link 7 . The second network device 325 is connected to the second network device 324 through the link 8 .
本申请实施例中,多点故障可以是指与第一网络设备314相连的链路3和链路4发生故障/中断,或者,可以是指与第一网络设备313相连的链路3和链路4发生故障/中断,或者,可以是指与第二网络设备323相连的链路7和链路10发生故障/中断,或者,可以是指与第二网络设备325相连的链路7和链路8发生故障/中断。In this embodiment of the application, multi-point failure may refer to the failure/interruption of link 3 and link 4 connected to the first network device 314, or may refer to link 3 and link 3 connected to the first network device 313. Failure/interruption of
其中,第一网络310可以为IPRAN网络,第二网络320可以为PeOTN网络。或者,第二网络320可以为IPRAN网络,第一网络310可以为PeOTN网络,不予限制。下面,以第一网络310为IPRAN网络,第二网络320为PeOTN网络为例进行说明。Wherein, the first network 310 may be an IPRAN network, and the second network 320 may be a PeOTN network. Alternatively, the second network 320 may be an IPRAN network, and the first network 310 may be a PeOTN network, without limitation. In the following, description will be made by taking the first network 310 as an IPRAN network and the second network 320 as a PeOTN network as an example.
一种可能的实现方式中,可以通过IPRAN网络与PeOTN网络之间的端口或者网络中的链路上检测协议互相绑定。当与网络1(如IPRAN网络)中的设备相连的链路同时故障后,例如,链路7和链路10发生故障/中断,网络2(如PeOTN网络)可以触发关闭两个网络之间的互联端口激光器,或者触发网络1和网络2之间的链路的检测协议向下(down),并向网络1中设备(如第一网络设备314)发送用于指示网络1和网络2之间的链路故障的告警信息。网络1中的设备接收到告警信息,可以确定网络1和网络2之间的链路故障。从而,网络1的设备可以更换传输路径,或者,可以描述为网络1的设备可以触发保护倒换,用以更换传输路径。In a possible implementation manner, a port between the IPRAN network and the PeOTN network or a detection protocol on a link in the network may be bound to each other. When the links connected to devices in network 1 (such as IPRAN network) fail at the same time, for example, link 7 and link 10 fail/interrupt, network 2 (such as PeOTN network) can trigger the shutdown of the connection between the two networks Interconnect port lasers, or trigger the detection protocol of the link between network 1 and network 2 to go down (down), and send a message to the device in network 1 (such as the first network device 314) to indicate the connection between network 1 and network 2 Link failure alarm information. Devices in network 1 receive the alarm information and can determine that the link between network 1 and network 2 is faulty. Therefore, the equipment in the network 1 can change the transmission path, or it can be described as that the equipment in the network 1 can trigger protection switching to change the transmission path.
基于该技术方案,当网络1中的链路发生故障时,可以触发网络1和网络2之间的链路的协议down,以使得网络2中的设备感知到网络1与网络2之间的链路发生故障,也即,网络2中的设备可以确定原有的传输路径无法传输数据。从而,网络2中的设备可以更换传输路径,保证数据的正常传输。Based on this technical solution, when the link in network 1 fails, the protocol down of the link between network 1 and network 2 can be triggered, so that the devices in network 2 can perceive the link between network 1 and network 2. The path fails, that is, the devices in the network 2 can determine that the original transmission path cannot transmit data. Therefore, the devices in the network 2 can change the transmission path to ensure the normal transmission of data.
但是,上述方案中,当网络1的多个链路发生故障时,触发网络1与网络2之间的链路故障,网络2中的设备可以进行保护倒换。但是,会导致运维人员在排查故障时,需要排查网络1的多条链路以及网络1与网络2之间的链路,从而增加运维人员的工作量。However, in the above solution, when multiple links of network 1 fail, a link failure between network 1 and network 2 is triggered, and devices in network 2 can perform protection switching. However, when troubleshooting, the O&M personnel need to check multiple links of the network 1 and the link between the network 1 and the network 2, thereby increasing the workload of the O&M personnel.
基于此,本申请实施例提供了一种数据传输方法,该方法包括:第一网络中的第一网络设备接收来自第二网络中与第一网络设备相连的第二网络设备的包括第一数据以及用于指示第二网络中与第二网络设备相连的链路出现故障/中断的第一标识的第一数据包,第二网络设备为第一数据包的第一传输路径上的设备,第一网络与第二网络为使用不同网络协议的网络;第一网络设备通过第二传输路径向第二网络中的设备发送第二数据包,第二传输路径上的设备不包括第二网络设备。Based on this, an embodiment of the present application provides a data transmission method, the method includes: the first network device in the first network receives the first data from the second network device connected to the first network device in the second network; and a first data packet with a first identifier used to indicate that a link connected to the second network device in the second network is faulty/interrupted, the second network device is a device on the first transmission path of the first data packet, and the second network device is a device on the first transmission path of the first data packet. The first network and the second network are networks using different network protocols; the first network device sends the second data packet to the devices in the second network through the second transmission path, and the devices on the second transmission path do not include the second network device.
基于本申请实施例提供的方法,当第一网络设备接收到第二网络设备的用于指示第二网络中与第二网络设备的相连的链路出现故障/中断的第一标识时,第一网络设备可以通过第二传输路径传输第一数据。由于第二传输路径上的设备不包括第二网络设备,也即,第二传输路径可以正常传输第一数据。如此,当第二网络出现多点故障时,第一网络设备可以正常的将第二网络设备所需的数据发送给第二网络中设备,保证了第一网络与第二网络之间的数据的正常传输。Based on the method provided in the embodiment of the present application, when the first network device receives the first identifier from the second network device indicating that the link connected to the second network device in the second network is faulty/interrupted, the first The network device can transmit the first data through the second transmission path. Since the devices on the second transmission path do not include the second network device, that is, the second transmission path can normally transmit the first data. In this way, when a multi-point failure occurs in the second network, the first network device can normally send the data required by the second network device to the devices in the second network, ensuring the data exchange between the first network and the second network. Normal transmission.
下面结合说明书附图对本申请实施例提供的方法进行说明。The method provided by the embodiment of the present application will be described below with reference to the drawings in the description.
此外,图3仅为示例性附图,图3中包括的设备的数量不受控制,且除图3所示设备之外,该通信网络还可以包括其他设备,例如,SDN控制器。其中,软件定义网络(softwaredefined network,SDN)控制器可以用于收集全网的拓扑信息,链路状态信息。还可以用于为网络中每个网络设备分配一个标签或标识。In addition, FIG. 3 is only an exemplary drawing, and the number of devices included in FIG. 3 is not controlled, and in addition to the devices shown in FIG. 3 , the communication network may also include other devices, for example, an SDN controller. Wherein, a software defined network (software defined network, SDN) controller may be used to collect topology information and link state information of the entire network. It can also be used to assign a label or identification to each network device in the network.
其中,拓扑信息可以包括多个网络设备之间的路由信息。链路状态信息可以包括多个网络设备之间的路由的带宽、数据传输速率、时延等。Wherein, the topology information may include routing information among multiple network devices. Link state information may include bandwidth, data transmission rate, delay, etc. of routes between multiple network devices.
例如,第一网络设备311和第二网络设备321之前的路由信息可以包括:第一网络设备311→第一网络设备316→第一网络设备315→第一网络设备314→第二网络设备323→第二网络设备322→第二网络设备321、第一网络设备311→第一网络设备312→第一网络设备313→第二网络设备325→第二网络设备324→第二网络设备321等。For example, the routing information between the first network device 311 and the second network device 321 may include: first network device 311→first network device 316→first network device 315→first network device 314→second network device 323→ Second network device 322→second network device 321, first network device 311→first network device 312→first network device 313→second network device 325→second network device 324→second network device 321, etc.
此外,图3中各个网络设备的名称不受限制,除图3所示名称之外,各个网络设备可以命名为其他名称,不予限制。In addition, the name of each network device in FIG. 3 is not limited, and each network device may be named other than the names shown in FIG. 3 without limitation.
在具体实现时,图3所示各设备均可以采用图4所示的组成结构,或者包括图4所示的部件。图4为本申请实施例提供的通信装置的可能的结构图。该通信装置例如为前述第一网络设备、第二网络设备。该通信装置400可以为第一网络设备或者第二网络设备中的芯片或者片上系统,如图4所示,该通信装置400包括处理器401、发送器402、接收器403、物理接口404。进一步的,该通信装置400还可以包括存储器405。其中,处理器401、发送器402、接收器403、物理接口404之间可以通过通信线路连接。In specific implementation, each device shown in FIG. 3 may adopt the composition structure shown in FIG. 4 , or include the components shown in FIG. 4 . FIG. 4 is a possible structural diagram of a communication device provided by an embodiment of the present application. The communication device is, for example, the aforementioned first network device and second network device. The
其中,处理器401是中央处理器(central processing unit,CPU)、通用处理器网络处理器(network processor,NP)、数字信号处理器(digital signal processing,DSP)、微处理器、微控制器、可编程逻辑器件(programmable logic device,PLD)或它们的任意组合。处理器401还可以是其它具有处理功能的装置,例如电路、器件或软件模块,不做限制。Wherein, the
发送器402、接收器403,用于与其他设备或其它通信网络进行通信。该其它通信网络可以为以太网,无线接入网(radio access network,RAN),无线局域网(wireless localarea networks,WLAN)等。发送器402、接收器403可以是模块、电路、收发器或者任何能够实现通信的装置。发送器402、接收器403在物理上可以相互独立也可以集成在一起。The
发送器402可以通过物理接口404将数据包发送给相邻的设备。接收器403可以通过物理接口404接收相邻的设备发送的数据包。
存储器405,用于存储指令。其中,指令可以是计算机程序。The
其中,存储器405可以是只读存储器(read-only memory,ROM)或可存储静态信息和/或指令的其他类型的静态存储设备,也可以是随机存取存储器(random accessmemory,RAM)或可存储信息和/或指令的其他类型的动态存储设备,还可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或其他磁存储设备等,不予限制。Wherein, the
需要指出的是,存储器405可以独立于处理器401存在,也可以和处理器401集成在一起。存储器405可以用于存储路由表,还可以存储指令或者程序代码或者一些数据等。存储器405可以位于通信装置400内,也可以位于通信装置400外,不做限制。处理器401用于执行存储器405中存储的指令实现本申请下述实施例提供的数据传输发送。It should be noted that the
在一种示例中,处理器401可以包括一个或多个CPU,例如图4中的CPU0和CPU1。In an example, the
作为一种可选的实现方式,通信装置400包括多个处理器,例如,除图4中的处理器401之外,还可以包括处理器406。As an optional implementation manner, the
需要指出的是,通信装置400可以是路由器、交换机、嵌入式设备、芯片系统或有图4中类似结构的设备。此外,图4中示出的组成结构并不构成对该通信装置的限定,除图4所示部件之外,该通信装置可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It should be noted that the
本申请实施例中,芯片系统可以由芯片构成,也可以包括芯片和其他分立器件。In the embodiment of the present application, the system-on-a-chip may be composed of chips, or may include chips and other discrete devices.
此外,本申请的各实施例之间涉及的动作、术语等均可以相互参考,不予限制。本申请的实施例中各个设备之间交互的消息名称或消息中的参数名称等只是一个示例,具体实现中也可以采用其他的名称,不予限制。In addition, actions, terms, etc. involved in various embodiments of the present application may refer to each other without limitation. In the embodiment of the present application, the names of messages exchanged between various devices or the names of parameters in messages are just examples, and other names may also be used in specific implementations, which are not limited.
本申请说明书和权利要求书及上述附图中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于限定特定顺序。The terms "first", "second" and "third" in the specification and claims of the present application and the above drawings are used to distinguish different objects, rather than to limit a specific order.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
下面以图3所示通信网络架构为例,对本申请实施例提供的数据传输方法进行描述。下述实施例中的各设备可以具备图4所示部件,不予赘述。The following describes the data transmission method provided by the embodiment of the present application by taking the communication network architecture shown in FIG. 3 as an example. Each device in the following embodiments may have the components shown in FIG. 4 , which will not be described in detail.
其中,本申请各实施例之间涉及的动作,术语等均可以相互参考,不予限制。本申请的实施例中各个设备之间交互的消息名称或消息中的参数名称等只是一个示例,具体实现中也可以采用其他的名称,不予限制。本申请各实施例涉及的动作只是一个示例,具体实现中也可以采用其他的名称,如:本申请实施例所述的“包括在”还可以替换为“承载于”或者“携带在”等。The actions and terms involved in the various embodiments of the present application may refer to each other without limitation. In the embodiment of the present application, the names of messages exchanged between various devices or the names of parameters in messages are just examples, and other names may also be used in specific implementations, which are not limited. The actions involved in the various embodiments of the present application are just examples, and other names may also be used in specific implementations, for example, the "included in" described in the embodiments of the present application may also be replaced with "carried on" or "carried in".
图5为本申请实施例提供了一种数据传输方法,如图5所示,该方法包括:Figure 5 provides a data transmission method for the embodiment of the present application, as shown in Figure 5, the method includes:
步骤501、第一网络设备接收来自第二网络设备的第一数据包。Step 501, a first network device receives a first data packet from a second network device.
其中,第一网络设备可以为图3中与第二网络320连接的网络设备,例如,第一网络设备可以为图3中第一网络设备314或第一网络设备313。Wherein, the first network device may be a network device connected to the second network 320 in FIG. 3 , for example, the first network device may be the first network device 314 or the first network device 313 in FIG. 3 .
其中,第二网络设备可以为图3中与第一网络设备连接的网络设备,第二网络设备可以为第一数据包的第一传输路径上的网络设备。第一传路径用于传输第一数据。例如,当第一传输路径为第一网络设备311→第一网络设备316→第一网络设备315→第一网络设备314→第二网络设备323→第二网络设备322→第二网络设备321时,第二网络设备可以为第二网络设备323。当第一传输路径为第一网络设备311→第一网络设备312→第一网络设备313→第二网络设备325→第二网络设备324→第二网络设备321时,第二网络设备可以为第二网络设备325。Wherein, the second network device may be a network device connected to the first network device in FIG. 3 , and the second network device may be a network device on the first transmission path of the first data packet. The first transmission path is used to transmit the first data. For example, when the first transmission path is first network device 311→first network device 316→first network device 315→first network device 314→second network device 323→second network device 322→second network device 321 , the second network device may be the second network device 323. When the first transmission path is first network device 311→first network device 312→first network device 313→second network device 325→second network device 324→second network device 321, the second network device may be the first Two network devices 325 .
其中,第一数据包包括第一数据以及第一标识。第一标识用于指示第二网络中与第二网络设备相连的链路出现故障/中断。第二网络中与第二网络设备相连的链路是指第二网络设备与第二网络中相邻的网络设备之间的链路。也即,第二网络设备无法向第二网络中的其他的网络设备发送数据。例如,与第二网络设备323相连的链路可以包括链路10以及链路7。与第二网络设备325相连的链路可以包括链路7和链路8。第一数据包括还可以包括其他信息,例如,第一数据包的目的地址信息。该目标地址信息可以为接收第一数据的网络设备的标识或者IP地址等,不予限制。网络设备的标识以及IP地址用于唯一标识一个网络设备。Wherein, the first data packet includes first data and a first identifier. The first identifier is used to indicate that a link connected to the second network device in the second network is faulty/interrupted. The link connected to the second network device in the second network refers to a link between the second network device and an adjacent network device in the second network. That is, the second network device cannot send data to other network devices in the second network. For example, the links connected to the second network device 323 may include link 10 and link 7 . Links connected to the second network device 325 may include Link7 and Link8. The first data may also include other information, for example, destination address information of the first data packet. The target address information may be an identifier or an IP address of the network device receiving the first data, without limitation. The identifier of the network device and the IP address are used to uniquely identify a network device.
其中,第一数据可以为当第一网络中的设备接收到来自第二网络中的设备的请求时,第一网络中设备向第二网络发送的数据。Wherein, the first data may be data sent by the device in the first network to the second network when the device in the first network receives a request from the device in the second network.
例如,当第二网络为PeOTN网络,第一网络为IPRAN网络时,第二网络可以为接入层中的网络,第一网络可以为核心汇聚层中的网络。若接入层接收到来自终端的用于请求第一数据的第一业务请求,接入层可以向核心汇聚层转发第一业务请求。相应的,核心汇聚层接收到来自接入层的第一业务请求时,可以获取第一数据(例如,从第一业务对应的网络或服务器获取第一数据),并向接入层发送第一数据。For example, when the second network is a PeOTN network and the first network is an IPRAN network, the second network may be a network in the access layer, and the first network may be a network in the core aggregation layer. If the access layer receives the first service request from the terminal for requesting the first data, the access layer may forward the first service request to the core convergence layer. Correspondingly, when the core convergence layer receives the first service request from the access layer, it can obtain the first data (for example, obtain the first data from the network or server corresponding to the first service), and send the first service request to the access layer. data.
一种示例,以第二网络设备321为宿网络设备,第一网络设备311为源网络设备为例,第一网络设备311接收到第一业务请求后,可以获取第一数据,并通过第一传输路径向第二网络设备321发送包括第一数据的数据包。An example, taking the second network device 321 as the sink network device and the first network device 311 as the source network device as an example, after the first network device 311 receives the first service request, it can obtain the first data and pass the first The transmission path sends the data packet including the first data to the second network device 321 .
其中,源网络设备是指获取第一数据的网络设备,宿网络设备是指接收第一数据的网络设备。源网络设备和宿网络设备为不同网络中的设备。Wherein, the source network device refers to the network device that acquires the first data, and the sink network device refers to the network device that receives the first data. The source network device and the sink network device are devices in different networks.
若接入层中的设备检测到发生多点故障,可以向核心层发送第一数据包。比如,当第一传输路径上的第二网络设备323接收到来自第一网络设备314的第一数据时,若第二网络设备323检测到链路7和链路10全部故障/中断,可以向第一网络设备发送第一数据包。If a device in the access layer detects that a multi-point failure occurs, it may send the first data packet to the core layer. For example, when the second network device 323 on the first transmission path receives the first data from the first network device 314, if the second network device 323 detects that all the links 7 and 10 are faulty/interrupted, it can send The first network device sends the first data packet.
其中,第一标识可以用于指示第二网络中与第二网络设备相连的链路出现故障/中断。Wherein, the first identifier may be used to indicate that a link connected to the second network device in the second network is faulty/interrupted.
一种示例中,第一标识可以包括多个比特。该多个比特中每个比特对应一条链路,一条链路的不同状态对应不同的比特值。比如,当比特值为0时,表示该比特对应的链路故障/中断;当比特值为1时,表示该比特对应的链路正常。例如,链路3对应的比特为0011-X,链路4对应的比特为0100-X,链路5对应的比特为0101-X,链路7对应的比特为0111-X,链路8对应的比特为1000-X,链路10对应的比特为1011-X。X用于表示链路的状态,例如,当X的值为1时,表示链路正常;当X的值为0时,标识链路发生故障/中断。In an example, the first identifier may include multiple bits. Each bit in the multiple bits corresponds to a link, and different states of a link correspond to different bit values. For example, when the bit value is 0, it indicates that the link corresponding to the bit is faulty/interrupted; when the bit value is 1, it indicates that the link corresponding to the bit is normal. For example, the bit corresponding to link 3 is 0011-X, the bit corresponding to link 4 is 0100-X, the bit corresponding to link 5 is 0101-X, the bit corresponding to link 7 is 0111-X, and the bit corresponding to link 8 is The bit of link 10 is 1000-X, and the bit corresponding to link 10 is 1011-X. X is used to indicate the state of the link. For example, when the value of X is 1, it indicates that the link is normal; when the value of X is 0, it indicates that the link is faulty/interrupted.
例如,当与第二网络设备323相连的链路7和链路10发生故障/中断时,第一标识可以为0111-0~1011-0;当与第二网络设备325相连的链路7和链路8发生故障/中断时,第一标识可以为0111-0~1000-0。For example, when the link 7 and the link 10 connected to the second network device 323 fail/interrupt, the first identifier may be 0111-0~1011-0; when the link 7 and the link connected to the second network device 325 When the link 8 is faulty/interrupted, the first identifier may be 0111-0 to 1000-0.
又一种示例中,第一标识可以为一个预先设置的符号,例如,第一标识可以为一个VLAN号,如VLAN4000。当然,第一标识还可以为其他符号,不予限制。In another example, the first identifier may be a preset symbol, for example, the first identifier may be a VLAN number, such as VLAN4000. Certainly, the first mark may also be other symbols, which are not limited.
步骤502、第一网络设备通过第二传输路径向第二网络中的设备发送第一数据。Step 502, the first network device sends the first data to the device in the second network through the second transmission path.
其中,第二传输路径上的设备不包括第二网络设备。例如,当第一传输路径为第一网络设备311→第一网络设备316→第一网络设备315→第一网络设备314→第二网络设备323→第二网络设备322→第二网络设备321,第二网络设备为323时,第二传输路径可以为第一网络设备313→第二网络设备325→第二网络设备324→第二网络设备321。第二网络中的设备可以为第二网络设备325。Wherein, the devices on the second transmission path do not include the second network device. For example, when the first transmission path is first network device 311→first network device 316→first network device 315→first network device 314→second network device 323→second network device 322→second network device 321, When the second network device is 323, the second transmission path may be the first network device 313→the second network device 325→the second network device 324→the second network device 321. The device in the second network may be the second network device 325 .
需要说明的是,当第一网络设备接收到包括第一标识的第一数据包时,可以向第一网络中与第二网络连接的网络设备发送第一数据以及第一地址信息。其中,第一地址信息可以为接收第一数据的网络设备的地址信息。第一网络中与第二网络连接的网络设备接收到第一数据后,可以继续向第二网络发送第一数据,直至将第一数据发送至第一地址信息对应的网络设备,从而可以保证数据的正常传输。It should be noted that, when the first network device receives the first data packet including the first identifier, it may send the first data and the first address information to a network device connected to the second network in the first network. Wherein, the first address information may be address information of a network device receiving the first data. After receiving the first data, the network device connected to the second network in the first network can continue to send the first data to the second network until the first data is sent to the network device corresponding to the first address information, so that the data can be guaranteed normal transmission.
例如,当第一网络设备314接收到来自第二网络设备323的第一数据包时,第一网络设备314可以向第一网络设备313发送一个包括第一数据的数据包。第一网络设备313接收到来自第一网络设备314的包括第一数据的数据包后,可以向第二网络设备325发送该数据包。由于与第二网络设备325相连的链路正常,从而可以保证数据的正常传输。For example, when the first network device 314 receives the first data packet from the second network device 323 , the first network device 314 may send a data packet including the first data to the first network device 313 . After receiving the data packet including the first data from the first network device 314 , the first network device 313 may send the data packet to the second network device 325 . Since the link connected to the second network device 325 is normal, normal transmission of data can be guaranteed.
又例如,当第一网络为IPRAN网络,第二网络为PeOTN网络时,当第一网络设备接收到第一数据包时,第一网络设备可以通过PW转发方式,将第一数据转发给第一网络中与第二网络连接的网络设备。其中,PW转发方式可以参照现有技术,不予赘述。For another example, when the first network is an IPRAN network and the second network is a PeOTN network, when the first network device receives the first data packet, the first network device may forward the first data to the first network device in a PW forwarding manner. A network device in the network connected to the second network. Wherein, the PW forwarding manner may refer to the prior art, and will not be described in detail.
基于图5的方法,当第一网络设备接收到第二网络设备的用于指示第二网络中与第二网络设备相连的链路出现故障/中断的第一标识时,第一网络设备可以通过第二传输路径传输第一数据。由于第二传输路径上的设备不包括第二网络设备,也即,第二传输路径可以正常传输第一数据。如此,当第二网络出现多点故障时,第一网络设备可以正常的将第二网络设备所需的数据发送给第二网络中设备,保证了第一网络与第二网络之间的数据的正常传输。Based on the method in FIG. 5, when the first network device receives the first identification from the second network device indicating that the link connected to the second network device in the second network is faulty/interrupted, the first network device can pass The second transmission path transmits the first data. Since the devices on the second transmission path do not include the second network device, that is, the second transmission path can normally transmit the first data. In this way, when a multi-point failure occurs in the second network, the first network device can normally send the data required by the second network device to the devices in the second network, ensuring the data exchange between the first network and the second network. Normal transmission.
在图5所示方法的一种可能的实现方式中,本申请实施提供的数据传输方法,还可以包括:In a possible implementation of the method shown in Figure 5, the implementation of the data transmission method provided by the present application may also include:
若第一网络设备接收到来自第二网络设备的第一数据包,第一网络设备还可以向源网络设备发送第一指示信息。If the first network device receives the first data packet from the second network device, the first network device may also send the first indication information to the source network device.
其中,源网络设备是指获取第一数据的网络设备,例如,源网络设备可以为图3中的任一个网络设备,如,可以为第一网络设备311。Wherein, the source network device refers to the network device that acquires the first data. For example, the source network device may be any network device in FIG. 3 , for example, it may be the first network device 311 .
其中,该第一指示信息可以用于指示第二传输路径,第二传输路径用于发送数据。或者,第一指示信息可以用于指示更新传输路径。其中,第二传输路径以及更新后的传输路径上的网络设备不包括出现链路故障的第二网络设备。Wherein, the first indication information may be used to indicate the second transmission path, and the second transmission path is used for sending data. Alternatively, the first indication information may be used to indicate to update the transmission path. Wherein, the network devices on the second transmission path and the updated transmission path do not include the second network device with a link failure.
例如,当第一指示信息用于指示第二传输路径时,第一指示信息可以包括多个网络设备的标识信息,该多个网络设备为第二传输路径的网络设备。当第一指示信息用于指示更新传输路径时,第一指示信息可以包括一个或多个标识位,当该一个或多个标志位为第一数值时,表示更新发送第一数据的传输路径。比如,第一数值可以为T1,表示更新传输路径。For example, when the first indication information is used to indicate the second transmission path, the first indication information may include identification information of multiple network devices, and the multiple network devices are network devices of the second transmission path. When the first indication information is used to indicate to update the transmission path, the first indication information may include one or more identification bits, and when the one or more identification bits are the first value, it indicates that the transmission path for sending the first data is updated. For example, the first value may be T1, indicating that the transmission path is updated.
基于该可能的实现方式,源网络设备在接收第一指示信息时,源网络设备在后续向第二网络中的设备发送数据时,可以更新当前的传输路径,以保证后续的数据的正常传输。Based on this possible implementation, when the source network device receives the first indication information, the source network device may update the current transmission path when subsequently sending data to devices in the second network, so as to ensure normal transmission of subsequent data.
在图3所示方法的另一种可能的实现方式中,若第二网络设备检测到第二网络中与第二网络设备相连的链路恢复正常,则第二网络设备向第一网络设备发送第二指示信息。第一网络设备接收到来自第二网络设备的第二指示信息时,第一网络设备可以向源网络设备发送第三指示信息。In another possible implementation of the method shown in FIG. 3, if the second network device detects that the link connected to the second network device in the second network returns to normal, the second network device sends a message to the first network device Second instruction message. When the first network device receives the second indication information from the second network device, the first network device may send third indication information to the source network device.
其中,第二指示信息和第二指示信息都可以用于指示第二网络中与第二网络设备相连的链路恢复正常。例如,第二指示信息可以包括第二标识。第二标识的描述可以参照第一标识,不予赘述。Wherein, both the second indication information and the second indication information may be used to indicate that the link connected to the second network device in the second network returns to normal. For example, the second indication information may include a second identifier. The description of the second identifier may refer to the first identifier, and details are not repeated here.
需要说明的是,源网络设备在接收到第三指示信息后,可以按照当前的传输路径发送数据,也可以将当前的传输路径更新为第一传输路径,不予限制。It should be noted that, after receiving the third indication information, the source network device may send data according to the current transmission path, or may update the current transmission path to the first transmission path, without limitation.
基于该可能的实现方式,源网络设备在接收到第二网络中的链路恢复正常时,源网络设备在向第二网络发送数据时,增加了传输路径的可选择性。Based on this possible implementation, when the source network device receives that the link in the second network is back to normal, the source network device increases the selectivity of the transmission path when sending data to the second network.
下面结合图3的通信网络,对图5所示方法进行详细描述。The method shown in FIG. 5 will be described in detail below in conjunction with the communication network in FIG. 3 .
如图6所述,为本申请实施例提供的又一种数据传输方法,该方法包括:As shown in Figure 6, another data transmission method provided by the embodiment of the present application includes:
步骤601、第一网络设备向第二网络设备发送第二数据包。相应的,第二网络设备接收来自第一网络设备的第二数据包。Step 601, the first network device sends a second data packet to the second network device. Correspondingly, the second network device receives the second data packet from the first network device.
其中,第二数据包包括第一数据。当然,第二数据包该可以包括其他信息,例如,还可以包括第一地址信息。第一地址信息可以为第二网络中接收第一数据的网络设备。例如,第一地址信息可以为第二网络设备321的地址信息。比如,第一地址信息可以为IP地址,也可以为第二网络设备的标识,不予限制。Wherein, the second data packet includes the first data. Certainly, the second data packet may include other information, for example, may also include the first address information. The first address information may be a network device receiving the first data in the second network. For example, the first address information may be address information of the second network device 321 . For example, the first address information may be an IP address, or an identifier of the second network device, without limitation.
步骤602、第二网络设备检测第二网络中与第二网络设备相连的链路是否发生故障/中断。Step 602, the second network device detects whether a link connected to the second network device in the second network is faulty/interrupted.
一种可能的实现方式中,第二网络设备可以主动通过与第二网络设备相连的链路发送请求,该请求用于检测第二网络中与第二网络设备相连的链路是否正常。例如,第二网络设备可以通过第二网络中与第二网络设备相连的全部链路周期性的发送请求,或者,第二网络设备可以在接收到第一网络设备发送的数据包之后,若该数据包包括传输路径,第二网络设备可以根据该传输路径发送数据包;若第二网络设备没有接收到相邻网络设备的接收到数据包的响应,第二网络设备可以确定与该相邻网络设备的之间的链路发生故障/中断。In a possible implementation manner, the second network device may actively send a request through the link connected to the second network device, and the request is used to detect whether the link connected to the second network device in the second network is normal. For example, the second network device may periodically send requests through all links connected to the second network device in the second network, or, after receiving the data packet sent by the first network device, the second network device may, if the The data packet includes a transmission path, and the second network device can send the data packet according to the transmission path; if the second network device does not receive a response from the adjacent network device for receiving the data packet, the second network device can determine that it is connected to the adjacent network The link between the devices is down/broken.
又一种可能的实现方式中,与第二网络设备相连的网络设备可以周期性的通过对应的链路向第二网络设备发送心跳信息。若第二网络设备在预设时间内没有接收到所有链路对应的网络设备的心跳信息,第二网络设备可以确定与第二网络设备相连的链路出现故障,或者,与第二网络设备相连的链路对应的网络设备出现故障。也即,第二网络设备无法继续转发第一数据。In yet another possible implementation manner, the network device connected to the second network device may periodically send heartbeat information to the second network device through a corresponding link. If the second network device does not receive the heartbeat information of the network devices corresponding to all the links within the preset time, the second network device may determine that the link connected to the second network device fails, or, the link connected to the second network device The network device corresponding to the link is faulty. That is, the second network device cannot continue to forward the first data.
在第二网络设备检测到第二网络中与第二网络设备相连的链路发生故障/中断的情况下,第二网络设备可以生成第一标识。为了防止第一数据丢失,第二网络设备可以将第一标识和第一数据封装成第一数据包。In a case where the second network device detects that a link connected to the second network device in the second network is faulty/interrupted, the second network device may generate the first identifier. In order to prevent loss of the first data, the second network device may encapsulate the first identifier and the first data into a first data packet.
若第二网络设备检测到第二网络中与第二网络设备相连的链路发生故障/中断,则执行步骤603。If the second network device detects that a link connected to the second network device in the second network is faulty/interrupted, step 603 is executed.
步骤603、第二网络设备向第一网络设备发送第一数据包。相应的,第一网络设备接收来自第二网络设备的第一数据包。Step 603, the second network device sends the first data packet to the first network device. Correspondingly, the first network device receives the first data packet from the second network device.
步骤604、第一网络设备通过第二传输路径向第二网络中的设备发送第一数据。相应的,第二网络中的设备接收第一数据。Step 604, the first network device sends the first data to the device in the second network through the second transmission path. Correspondingly, devices in the second network receive the first data.
其中,步骤603和步骤604可以参照图3的步骤501和步骤502,不予赘述。Wherein, step 603 and step 604 may refer to step 501 and step 502 in FIG. 3 , and details are not repeated here.
步骤605、第一网络设备向源网络设备发送第一指示信息。相应的,源网络设备接收来自第一网络设备的第一指示信息。Step 605, the first network device sends the first indication information to the source network device. Correspondingly, the source network device receives the first indication information from the first network device.
步骤606、源网络设备更新传输路径。Step 606, the source network device updates the transmission path.
其中,更新后的传输路径不包括第二网络设备。Wherein, the updated transmission path does not include the second network device.
其中,步骤605和步骤606的描述可以参照图3所示的第一种可能的实现方式,不予赘述。Wherein, the description of step 605 and step 606 may refer to the first possible implementation manner shown in FIG. 3 , and details are not repeated here.
步骤607(可选的)、第二网络设备检测第二网络中与第二网络设备相连的链路是否恢复正常。Step 607 (optional), the second network device detects whether the link connected to the second network device in the second network returns to normal.
其中,若恢复正常,第二网络设备执行步骤608及步骤609。Wherein, if it returns to normal, the second network device performs step 608 and step 609 .
步骤608(可选的)、第二网络设备向第一网络设备发送第二指示信息。相应的,第一网络设备接收来自第二网络设备的第二指示信息。Step 608 (optional), the second network device sends second indication information to the first network device. Correspondingly, the first network device receives the second indication information from the second network device.
步骤609(可选的)、第一网络设备向源网络设备发送第三指示信息。相应的,源网络设备接收来自第一网络设备的第三指示信息。Step 609 (optional), the first network device sends third indication information to the source network device. Correspondingly, the source network device receives third indication information from the first network device.
其中,步骤607、步骤608和步骤609的描述可以参照图3所示的第二种可能的实现方式,不予赘述。Wherein, the description of step 607, step 608 and step 609 may refer to the second possible implementation manner shown in FIG. 3, and details are not repeated here.
需要说明的是,本申请实施例中,以当第二网络发生多点故障,第一网络中的设备向第二网络发送数据为例进行说明,当第二网络发生多点故障,第二网络中的设备向第一网络发送数据时,由于第二网络中的设备之间具有通信关系,第二网络中的每个设备在检测到本网络发生多点故障时,可以主动更换传输路径。或者,第二网络中的设备可以在接收到其他设备的指令后,更换传输路径或更换下一跳设备。从而可以保证数据的正常发送。It should be noted that, in this embodiment of the application, when a multi-point failure occurs in the second network, the device in the first network sends data to the second network as an example. When a multi-point failure occurs in the second network, the second network When the devices in the second network send data to the first network, because there is a communication relationship between the devices in the second network, each device in the second network can actively change the transmission path when it detects that a multi-point failure occurs in the network. Alternatively, the devices in the second network may change the transmission path or the next-hop device after receiving instructions from other devices. Thus, the normal transmission of data can be guaranteed.
其中,当第一网络发送多点故障,第二网络中的设备向第一网络发送数据时可以参照上述实施例所示的方法,不予赘述。Wherein, when the first network sends multi-point faults, and the devices in the second network send data to the first network, the method shown in the above-mentioned embodiments may be referred to, and details are not repeated here.
基于图6的方法,当第一网络设备接收到第二网络设备的用于指示第二网络中与第二网络设备相邻的链路出现故障/中断的第一标识时,第一网络设备可以通过第二传输路径传输第一数据。由于第二传输路径上的设备不包括第二网络设备,也即,第二传输路径可以正常传输第一数据。如此,当第二网络出现多点故障时,第一网络设备可以正常的将第二网络设备所需的数据发送给第二网络中设备,保证了第一网络与第二网络之间的数据的正常传输。Based on the method in FIG. 6, when the first network device receives the first identification from the second network device indicating that a link adjacent to the second network device in the second network is faulty/interrupted, the first network device may The first data is transmitted through the second transmission path. Since the devices on the second transmission path do not include the second network device, that is, the second transmission path can normally transmit the first data. In this way, when a multi-point failure occurs in the second network, the first network device can normally send the data required by the second network device to the devices in the second network, ensuring the data exchange between the first network and the second network. Normal transmission.
本申请上述实施例中的各个方案在不矛盾的前提下,均可以进行结合。The solutions in the above embodiments of the present application can be combined under the premise of no contradiction.
本申请实施例可以根据上述方法示例对通信装置进行功能模块或者功能单元的划分,例如,可以对应各个功能划分各个功能模块或者功能单元,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块或者功能单元的形式实现。其中,本申请实施例中对模块或者单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present application can divide the communication device into functional modules or functional units according to the above method example, for example, each functional module or functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated modules can be implemented not only in the form of hardware, but also in the form of software function modules or functional units. Wherein, the division of modules or units in the embodiment of the present application is schematic, and is only a logical function division, and there may be another division manner in actual implementation.
在采用对应各个功能划分各个功能模块的情况下,图7示出了一种通信装置70的结构示意图,该通信装置70可以为第一网络设备,也可以为应用于第一网络设备的芯片,该通信装置70可以用于执行上述实施例中涉及的通信装置的功能。图7所示的通信装置70可以包括:通信单元702以及处理单元701,还可以包括存储单元703。图7所示的结构示意图可以用于示意上述实施例中所涉及第一网络设备的结构。In the case of dividing each functional module corresponding to each function, FIG. 7 shows a schematic structural diagram of a communication device 70. The communication device 70 may be the first network device, or may be a chip applied to the first network device. The communication device 70 may be used to perform the functions of the communication device involved in the above-mentioned embodiments. The communication device 70 shown in FIG. 7 may include: a communication unit 702 and a processing unit 701 , and may also include a storage unit 703 . The schematic structural diagram shown in FIG. 7 may be used to illustrate the structure of the first network device involved in the foregoing embodiments.
当图7所示的结构示意图用于示意上述实施例中所涉及的第一网络设备的结构时,处理单元701用于对第一网络设备的动作进行控制管理,例如,通信单元702,用于接收来自第二网络设备的包括第一数据以及用于指示第二网络中与第二网络设备相连的链路出现故障/中断的第一标识的第一数据包,第一网络设备为第一网络中的设备,第二网络设备为第一数据包的第一传输路径上的设备,第二网络设备为第二网络中的设备,第一网络与第二网络为不同的网络。When the structural diagram shown in FIG. 7 is used to illustrate the structure of the first network device involved in the above-mentioned embodiments, the processing unit 701 is configured to control and manage the actions of the first network device, for example, the communication unit 702 is configured to receiving a first data packet from a second network device including first data and a first identifier indicating that a link connected to the second network device in the second network is faulty/interrupted, the first network device being the first network device The second network device is a device on the first transmission path of the first data packet, the second network device is a device in the second network, and the first network and the second network are different networks.
通信单元702,还用于通过第二传输路径向第二网络中的设备发送第一数据,第二传输路径上的设备不包括第二网络设备。The communication unit 702 is further configured to send the first data to devices in the second network through the second transmission path, and the devices on the second transmission path do not include the second network device.
一种可能的设计中,通信单元702,还用于向第一数据包对应的源网络设备发送第一指示信息,第一指示信息用于指示更新第一数据的传输路径,或者,第一指示信息用于指示第二网络中与第二网络设备相连的链路出现故障/中断。In a possible design, the communication unit 702 is further configured to send first indication information to the source network device corresponding to the first data packet, where the first indication information is used to indicate to update the transmission path of the first data, or, the first indication The information is used to indicate that a link connected to the second network device in the second network is faulty/interrupted.
一种可能的设计中,通信单元702,还用于向第二网络设备发送第二数据包,第二数据包包括第一数据以及第一地址信息,第一地址信息为接收第一数据的设备的地址信息。In a possible design, the communication unit 702 is also configured to send a second data packet to the second network device, the second data packet includes the first data and the first address information, and the first address information is the device receiving the first data address information.
其中,通信装置70的具体实现方式可参考图5或图6所示数据传输方法中第一网络设备的行为功能。Wherein, for a specific implementation manner of the communication device 70, reference may be made to the behavior function of the first network device in the data transmission method shown in FIG. 5 or FIG. 6 .
作为又一种可实现方式,图7中的处理单元701可以由处理器代替,该处理器可以集成处理单元701的功能。图7中的通信单元702可以由收发器或收发单元代替,该收发器或收发单元可以集成通信单元702的功能。As yet another implementable manner, the processing unit 701 in FIG. 7 may be replaced by a processor, and the processor may integrate functions of the processing unit 701 . The communication unit 702 in FIG. 7 may be replaced by a transceiver or a transceiver unit, and the transceiver or transceiver unit may integrate the functions of the communication unit 702 .
进一步的,当处理单元701由处理器代替,通信单元702由收发器或收发单元代替时,本申请实施例所涉及的通信装置70可以为图4所示通信装置。Further, when the processing unit 701 is replaced by a processor, and the communication unit 702 is replaced by a transceiver or a transceiver unit, the communication device 70 involved in the embodiment of the present application may be the communication device shown in FIG. 4 .
在采用对应各个功能划分各个功能模块的情况下,图8示出了一种通信装置80的结构示意图,该通信装置80可以为第二网络设备,也可以为应用于第二网络设备的芯片,该通信装置80可以用于执行上述实施例中涉及的通第二网络设备的功能。图8所示的通信装置80可以包括:通信单元802以及处理单元801,还可以包括存储单元803。图7所示的结构示意图可以用于示意上述实施例中所涉及第二网络设备的结构。In the case of dividing each functional module corresponding to each function, FIG. 8 shows a schematic structural diagram of a communication device 80. The communication device 80 may be a second network device or a chip applied to the second network device. The communication device 80 may be used to perform the function of communicating with the second network device involved in the above embodiments. The communication device 80 shown in FIG. 8 may include: a communication unit 802 and a processing unit 801 , and may further include a storage unit 803 . The schematic structural diagram shown in FIG. 7 may be used to illustrate the structure of the second network device involved in the foregoing embodiments.
当图8所示的结构示意图用于示意上述实施例中所涉及的第一网络设备的结构时,处理单元801用于对第二网络设备的动作进行控制管理,例如,通信单元802,用于接收来自第一网络中的第一网络设备的包括第一数据以及第一地址信息的第二数据包,第一网络设备与第二网络设备通信连接,第一地址信息为接收第一数据的设备的地址信息,第一网络与第二网络为使用不同网络协议的网络。When the schematic structural diagram shown in FIG. 8 is used to illustrate the structure of the first network device involved in the above embodiment, the processing unit 801 is configured to control and manage the actions of the second network device, for example, the communication unit 802 is configured to receiving a second data packet including first data and first address information from a first network device in the first network, the first network device communicates with the second network device, and the first address information is the device receiving the first data The address information of the first network and the second network are networks using different network protocols.
通信单元802,还用于若第二网络设备检测到与第二网络中与第二网络设备相连的链路出现故障/中断,向第一网络设备发送包括第一数据以及用于指示第二网络中与第二网络相连的链路出现故障/中断的第一标识的第一数据包。The communication unit 802 is further configured to, if the second network device detects that a link connected to the second network device in the second network is faulty/interrupted, send to the first network device including the first data and instructions for the second network The first data packet of the first identification in which the link connected to the second network is faulty/interrupted.
其中,通信装置80的具体实现方式可参考图6所示数据传输方法中第二网络设备的行为功能。Wherein, for a specific implementation manner of the communication device 80, reference may be made to the behavior function of the second network device in the data transmission method shown in FIG. 6 .
作为又一种可实现方式,图8中的处理单元801可以由处理器代替,该处理器可以集成处理单元801的功能。图8中的通信单元802可以由收发器或收发单元代替,该收发器或收发单元可以集成通信单元802的功能。As yet another implementable manner, the processing unit 801 in FIG. 8 may be replaced by a processor, and the processor may integrate functions of the processing unit 801 . The communication unit 802 in FIG. 8 may be replaced by a transceiver or a transceiver unit, and the transceiver or transceiver unit may integrate the functions of the communication unit 802 .
进一步的,当处理单元801由处理器代替,通信单元802由收发器或收发单元代替时,本申请实施例所涉及的通信装置80可以为图4所示通信装置。Further, when the processing unit 801 is replaced by a processor, and the communication unit 802 is replaced by a transceiver or a transceiver unit, the communication device 80 involved in this embodiment of the present application may be the communication device shown in FIG. 4 .
图9为本申请实施例提供的一种通信系统的结构图,如图9所示,该系统可以包括:第一网络设备901、第二网络设备902等。FIG. 9 is a structural diagram of a communication system provided by an embodiment of the present application. As shown in FIG. 9, the system may include: a first network device 901, a second network device 902, and the like.
其中,第一网络设备901可以用于执行图5和图6中第一网络设备的步骤。第二网络设备902可以执行和图6中第二网络设备的步骤。第一网络设备901具有图5和图6所示的第一网络设备的功能。第二网络设备902具有图6所示的第二网络设备的功能。Wherein, the first network device 901 may be used to execute the steps of the first network device in FIG. 5 and FIG. 6 . The second network device 902 may perform the steps of the second network device in FIG. 6 . The first network device 901 has the functions of the first network device shown in FIG. 5 and FIG. 6 . The second network device 902 has the functions of the second network device shown in FIG. 6 .
具体的,该可能的设计中,第一网络设备901的具体实现过程可参照上述图5和图6所示方法实施例涉及的第一网络设备的执行过程,第二网络设备902的具体实现过程可参照上述图6方法实施例涉及第二网络设备的执行过程。Specifically, in this possible design, the specific implementation process of the first network device 901 can refer to the execution process of the first network device involved in the method embodiment shown in Figure 5 and Figure 6 above, and the specific implementation process of the second network device 902 Refer to the above-mentioned FIG. 6 method embodiment related to the execution process of the second network device.
基于图9所示系统,当第一网络设备接收到第二网络设备的用于指示第二网络中与第二网络设备的相连的链路出现故障/中断的第一标识时,第一网络设备可以通过第二传输路径传输第一数据。由于第二传输路径上的设备不包括第二网络设备,也即,第二传输路径可以正常传输第一数据。如此,当第二网络出现多点故障时,第一网络设备可以正常的将第二网络设备所需的数据发送给第二网络中设备,保证了第一网络与第二网络之间的数据的正常传输。Based on the system shown in FIG. 9, when the first network device receives the first identification from the second network device indicating that the link connected to the second network device in the second network is faulty/interrupted, the first network device The first data may be transmitted through the second transmission path. Since the devices on the second transmission path do not include the second network device, that is, the second transmission path can normally transmit the first data. In this way, when a multi-point failure occurs in the second network, the first network device can normally send the data required by the second network device to the devices in the second network, ensuring the data exchange between the first network and the second network. Normal transmission.
本申请实施例还提供了一种计算机可读存储介质。上述方法实施例中的全部或者部分流程可以由计算机程序来指令相关的硬件完成,该程序可存储于上述计算机可读存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。计算机可读存储介质可以是前述任一实施例的第一网络设备或第二网络设备(包括数据发送端和/或数据接收端)的内部存储单元,例如第一网络设备或第二网络设备的硬盘或内存。上述计算机可读存储介质也可以是上述第一网络设备或第二网络设备的外部存储设备,例如上述第一网络设备或第二网络设备上配备的插接式硬盘,智能存储卡(smart media card,SMC),安全数字(securedigital,SD)卡,闪存卡(flash card)等。进一步地,上述计算机可读存储介质还可以既包括上述第一网络设备或第二网络设备的内部存储单元也包括外部存储设备。上述计算机可读存储介质用于存储上述计算机程序以及上述第一网络设备或第二网络设备所需的其他程序和数据。上述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The embodiment of the present application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be completed by computer programs to instruct related hardware, and the program can be stored in the above computer-readable storage medium. When the program is executed, it can include the processes of the above method embodiments . The computer-readable storage medium may be an internal storage unit of the first network device or the second network device (including the data sending end and/or the data receiving end) of any of the foregoing embodiments, for example, the first network device or the second network device hard disk or memory. The above-mentioned computer-readable storage medium may also be an external storage device of the above-mentioned first network device or the second network device, such as a plug-in hard disk equipped on the above-mentioned first network device or the second network device, a smart media card (smart media card) , SMC), secure digital (securedigital, SD) card, flash memory card (flash card), etc. Further, the computer-readable storage medium may also include both an internal storage unit of the first network device or the second network device and an external storage device. The above-mentioned computer-readable storage medium is used to store the above-mentioned computer program and other programs and data required by the above-mentioned first network device or the second network device. The computer-readable storage medium described above can also be used to temporarily store data that has been output or will be output.
需要说明的是,本申请的说明书、权利要求书及附图中的术语“第一”和“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the specification, claims and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or apparatuses.
应当理解,在本申请中,“至少一个(项)”是指一个或者多个,“多个”是指两个或两个以上,“至少两个(项)”是指两个或三个及三个以上,“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:只存在A,只存在B以及同时存在A和B三种情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”,其中a,b,c可以是单个,也可以是多个。It should be understood that in this application, "at least one (item)" means one or more, "multiple" means two or more, and "at least two (items)" means two or three And three or more, "and/or", is used to describe the association relationship of associated objects, indicating that there can be three types of relationships, for example, "A and/or B" can mean: only A exists, only B exists, and A exists at the same time and B, where A and B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one item (piece) of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c ", where a, b, c can be single or multiple.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated according to needs It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation or may be integrated into another device, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places . Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above is only a specific implementation of the application, but the protection scope of the application is not limited thereto, and any changes or replacements within the technical scope disclosed in the application should be covered within the protection scope of the application . Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010622056.6A CN111885630B (en) | 2020-07-01 | 2020-07-01 | Data transmission method and communication device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010622056.6A CN111885630B (en) | 2020-07-01 | 2020-07-01 | Data transmission method and communication device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111885630A CN111885630A (en) | 2020-11-03 |
| CN111885630B true CN111885630B (en) | 2023-06-30 |
Family
ID=73157422
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010622056.6A Active CN111885630B (en) | 2020-07-01 | 2020-07-01 | Data transmission method and communication device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111885630B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112333091B (en) * | 2020-11-05 | 2022-11-11 | 中国联合网络通信集团有限公司 | Routing system, method and apparatus |
| CN114554256B (en) * | 2020-11-25 | 2024-11-22 | 阿里巴巴集团控股有限公司 | Media stream playback, media stream processing method, device, equipment and storage medium |
| US20240064097A1 (en) * | 2021-01-13 | 2024-02-22 | Nippon Telegraph And Telephone Corporation | Transfer device, transfer method, transfer system, and program |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2015101168A1 (en) * | 2013-12-30 | 2015-07-09 | 华为技术有限公司 | Failure recovery method and controller |
| WO2017190672A1 (en) * | 2016-05-05 | 2017-11-09 | 中兴通讯股份有限公司 | Message forwarding method and apparatus |
| WO2018107974A1 (en) * | 2016-12-12 | 2018-06-21 | 华为技术有限公司 | Routing switching-back method, and controller and system |
| CN111316685A (en) * | 2018-03-30 | 2020-06-19 | 华为技术有限公司 | Method and device for converged networking |
Family Cites Families (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1756187A (en) * | 2004-09-30 | 2006-04-05 | 华为技术有限公司 | Handling of Faults Between Egress Label Switching Router and Its Connected Data Equipment |
| CN101529869A (en) * | 2006-11-02 | 2009-09-09 | 北方电讯网络有限公司 | Method and apparatus for computing alternate multicast/broadcast paths in a routed network |
| US8462621B2 (en) * | 2009-07-27 | 2013-06-11 | At&T Intellectual Property I, L.P. | Systems and methods of multicast reconfiguration using cross-layer information |
| CN104168132B (en) * | 2014-06-18 | 2017-12-12 | 华为技术有限公司 | Method for diagnosing faults, equipment and system |
| WO2017197563A1 (en) * | 2016-05-16 | 2017-11-23 | 华为技术有限公司 | Data transmission method and apparatus |
| CN108075968A (en) * | 2016-11-10 | 2018-05-25 | 中国移动通信集团广东有限公司 | A kind of network system and pseudo-line service processing method |
| CN111901235B (en) * | 2017-12-01 | 2025-07-04 | 华为技术有限公司 | Method and device for processing routing, and method and device for data transmission |
| CN108337157B (en) * | 2017-12-22 | 2021-06-15 | 华为技术有限公司 | A method and node for transmitting messages in a network |
| CN110661706B (en) * | 2018-06-30 | 2021-02-12 | 华为技术有限公司 | Method, device and system for processing transmission path fault |
| CN110875855A (en) * | 2018-08-30 | 2020-03-10 | 北京华为数字技术有限公司 | Method and network device for detecting network link status |
| CN109698781B (en) * | 2018-12-20 | 2021-10-29 | 新华三技术有限公司 | Management method of message forwarding path and PE (provider edge) equipment |
| CN109660458B (en) * | 2019-02-15 | 2021-04-06 | 中国联合网络通信集团有限公司 | Routing method and device |
| CN110061899B (en) * | 2019-04-28 | 2021-08-06 | 新华三技术有限公司 | Data message transmission method, device and system |
-
2020
- 2020-07-01 CN CN202010622056.6A patent/CN111885630B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2015101168A1 (en) * | 2013-12-30 | 2015-07-09 | 华为技术有限公司 | Failure recovery method and controller |
| WO2017190672A1 (en) * | 2016-05-05 | 2017-11-09 | 中兴通讯股份有限公司 | Message forwarding method and apparatus |
| WO2018107974A1 (en) * | 2016-12-12 | 2018-06-21 | 华为技术有限公司 | Routing switching-back method, and controller and system |
| CN111316685A (en) * | 2018-03-30 | 2020-06-19 | 华为技术有限公司 | Method and device for converged networking |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111885630A (en) | 2020-11-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10003531B2 (en) | Method for establishing tunnel, method for allocating label, device and network system | |
| US10250459B2 (en) | Bandwidth on-demand services in multiple layer networks | |
| US8711863B2 (en) | Virtual links in a routed ethernet mesh network | |
| US7127523B2 (en) | Spanning tree protocol traffic in a transparent LAN | |
| US9059902B2 (en) | Procedures, apparatuses, systems, and computer-readable media for operating primary and backup network elements | |
| JP4729119B2 (en) | Communication device in label switching network | |
| CN102025541B (en) | Method and system for realizing multicast protection | |
| CN102571426B (en) | Double-homing protection method and device | |
| CN101217470B (en) | Method and device for forwarding message | |
| US20120236730A1 (en) | Method, device and system for processing service traffic based on pseudo wires | |
| US20080107018A1 (en) | Method and apparatus for computing alternate multicast/broadcast paths in a routed network | |
| CN101313517A (en) | Control system, datagram transmission method and network equipment in Ethernet | |
| CN103368843A (en) | An OAM label switched path for fast reroute of protected label switched paths | |
| CN111885630B (en) | Data transmission method and communication device | |
| CN101999224A (en) | Redundant Ethernet automatic protection switching access to virtual private lan services | |
| CN102315967B (en) | Intermediate node protection method for multicast label switched path and device | |
| CN1984076A (en) | Method and system for transmitting message in virtual special network link fault | |
| WO2018058639A1 (en) | Pseudo wire load sharing method and apparatus | |
| CN102185712B (en) | The reverse method of VPLS network and ethernet ring network and device | |
| CN114520762B (en) | Method for sending BIERv6 messages and first network device | |
| CN101529829A (en) | Traffic engineered paths in a link state protocol controlled Ethernet network | |
| CN101848199A (en) | Method for implementing layering virtual link, system and transmission equipment thereof | |
| CN115942157A (en) | Double-homing protection system, double-homing protection method and related equipment | |
| CN111726287B (en) | Ring network protection method and device | |
| CN111901182B (en) | Traffic forwarding method and network device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |