技术领域technical field
本发明涉及通信领域,特别是指一种微波网元及微波网元间的信息传输方法、装置。The present invention relates to the communication field, in particular to a microwave network element and an information transmission method and device between microwave network elements.
背景技术Background technique
数字微波通信作为现代通信技术的三大传输手段之一,因其自身兼有数字通信和微波通信的方便、灵活等优点,一直在通信领域中起着举足轻重的作用。在现代移动通信系统中无论是移动接入网、移动城域网还是骨干核心网,随处都可以看到数字微波通信设备的身影,特别在应急通信中,数字微波通信更由于其信号品质佳和易于维护而成为一种难于替代的通信手段。随着微波通信设备越来越广泛的应用,也对微波通信设备提出了越来越高的要求。As one of the three major transmission means of modern communication technology, digital microwave communication has always played a pivotal role in the field of communication because of its own advantages of convenience and flexibility of both digital communication and microwave communication. In modern mobile communication systems, whether it is mobile access network, mobile metropolitan area network or backbone core network, digital microwave communication equipment can be seen everywhere. Especially in emergency communication, digital microwave communication is more due to its good signal quality and It is easy to maintain and becomes a means of communication that is difficult to replace. As the microwave communication equipment is more and more widely used, higher and higher requirements are put forward for the microwave communication equipment.
数字微波通信是通过地面视距进行信息传递的,是一种点到点的传输。为了对网络中所有的微波网元进行管理,所有微波网元通过专门的网管通道来建立本网元与其它微波网元之间的网管通道,单个网元既是一个数据源设备,也是一个数据转发设备,它通过网管接口传递的既可以是自己的网管数据也可以是其它微波网元的网管数据。Digital microwave communication transmits information through ground line-of-sight, and is a point-to-point transmission. In order to manage all microwave network elements in the network, all microwave network elements establish a network management channel between this network element and other microwave network elements through a dedicated network management channel. A single network element is not only a data source device, but also a data forwarding device. The device, which transmits its own network management data through the network management interface or the network management data of other microwave network elements.
目前,网管数据都是使用TCP/IP协议传送的,主要有两种方式:第一种方法是网络内所有网元都有一个或多个IP地址,网管存储有网络内所有网元的IP地址信息,当网管需要向某网元发送网管数据时它首先向该网元一个或多个IP地址发送请求消息,接收到该网元发送的应答消息后即于该网元建立连接,然后就可以向该网元传送网管数据。该方法的缺陷是网元的IP地址必须提前设置为指定的一个或几个IP地址,网管只会向这几个IP地址发送网元发现请求消息,若IP地址设置不正确则网管无法与网元建立连接并获取网元信息。第二种方法是主动上报,网元在加电后主动与指定IP地址的网管中心建立通信连接,并上报本网元的所有信息,然后网管中心就可以向该网元下发网管数据了。该方法的缺陷是网元加电后向网元管理系统发送的是socket消息,因此必须知道网元管理系统的IP地址,若网元管理系统的IP地址发生改变则会导致网元无法与网管建立连接。At present, the network management data is transmitted using the TCP/IP protocol. There are two main methods: the first method is that all network elements in the network have one or more IP addresses, and the network management stores the IP addresses of all network elements in the network. Information, when the network management needs to send network management data to a network element, it first sends a request message to one or more IP addresses of the network element, and establishes a connection with the network element after receiving the response message sent by the network element, and then can Send network management data to the network element. The defect of this method is that the IP address of the network element must be set to one or several specified IP addresses in advance, and the network management will only send network element discovery request messages to these IP addresses. The network element establishes a connection and obtains network element information. The second method is to report actively. After the network element is powered on, it actively establishes a communication connection with the network management center with the specified IP address, and reports all the information of the network element, and then the network management center can send the network management data to the network element. The defect of this method is that the socket message is sent to the network element management system after the network element is powered on, so the IP address of the network element management system must be known. If the IP address of the network element management system changes, the network element cannot communicate with the network management system. establish connection.
发明内容Contents of the invention
本发明要解决的技术问题是提供一种微波网元及微波网元间的信息传输方法、装置,无需知道相邻网元的任何信息,即可实现微波网元之间的通信。The technical problem to be solved by the present invention is to provide a microwave network element and an information transmission method and device between microwave network elements, which can realize communication between microwave network elements without knowing any information of adjacent network elements.
为解决上述技术问题,本发明的实施例提供技术方案如下:In order to solve the above technical problems, embodiments of the present invention provide technical solutions as follows:
一方面,提供一种微波网元间的信息传输方法,包括:On the one hand, a method for transmitting information between microwave network elements is provided, including:
第一微波网元通过与相邻的第二微波网元之间的物理连接建立与所述第二微波网元之间的临跳通道;The first microwave network element establishes an impending channel with the second microwave network element through a physical connection with the adjacent second microwave network element;
所述第一微波网元通过所述临跳通道向所述第二微波网元发送数据。The first microwave network element sends data to the second microwave network element through the impending channel.
进一步地,所述第一微波网元通过与相邻的第二微波网元之间的物理连接建立与所述第二微波网元之间的临跳通道包括:Further, establishing the impending channel between the first microwave network element and the second microwave network element through a physical connection with the adjacent second microwave network element includes:
所述第一微波网元根据自身的网元信息构建建链消息;The first microwave network element constructs a link establishment message according to its own network element information;
所述第一微波网元通过与相邻的第二微波网元之间的物理连接向所述第二微波网元发送所述建链消息;The first microwave network element sends the link establishment message to the second microwave network element through a physical connection with an adjacent second microwave network element;
所述第一微波网元接收所述第二微波网元返回的建链成功消息,所述建链成功消息中携带有所述第二微波网元的网元信息;The first microwave network element receives a link establishment success message returned by the second microwave network element, and the link establishment success message carries network element information of the second microwave network element;
所述第一微波网元保存所述第二微波网元的网元信息,并将与所述第二微波网元之间的临跳通道标识为连通状态。The first microwave network element saves the network element information of the second microwave network element, and marks the impending channel with the second microwave network element as a connected state.
进一步地,所述第一微波网元通过所述临跳通道向所述第二微波网元发送数据包括:Further, the sending of data by the first microwave network element to the second microwave network element through the impending channel includes:
步骤a1:所述第一微波网元将待传输的数据存储在缓冲区内,根据待传输的数据构建数据发送消息,并在所述数据发送消息中加入控制信息构建临跳数据消息;Step a1: The first microwave network element stores the data to be transmitted in a buffer, constructs a data transmission message according to the data to be transmitted, and adds control information to the data transmission message to construct a data message before jumping;
步骤a2:所述第一微波网元通过所述临跳通道将所述临跳数据消息发送给所述第二微波网元;Step a2: the first microwave network element sends the impending data message to the second microwave network element through the impending channel;
步骤a3:所述第一微波网元对发送所述临跳数据消息的次数进行计数,若发送次数未达到预设次数,则转向步骤a4;若发送次数达到预设次数,则转向步骤a5;Step a3: The first microwave network element counts the number of times of sending the impending data message, if the number of times of sending does not reach the preset number of times, turn to step a4; if the number of times of sending reaches the preset number of times, turn to step a5;
步骤a4:若所述第一微波网元在预设时间内接收到所述第二微波网元返回的接收应答消息,转向步骤a5;若所述第一微波网元在预设时间内未接收到所述第二微波网元返回的接收应答消息,转向步骤a2;Step a4: If the first microwave network element receives the reception response message returned by the second microwave network element within the preset time, turn to step a5; if the first microwave network element does not receive the response message within the preset time To the reception response message returned by the second microwave network element, turn to step a2;
步骤a5:所述第一微波网元删除所述缓冲区内存储的待传输的数据。Step a5: The first microwave network element deletes the data to be transmitted stored in the buffer.
进一步地,所述方法还包括:Further, the method also includes:
步骤b1:所述第一微波网元通过所述临跳通道向所述第二微波网元发送心跳消息;Step b1: the first microwave network element sends a heartbeat message to the second microwave network element through the impending channel;
步骤b2:所述第一微波网元对发送所述心跳消息的次数进行计数,若发送次数未达到预设次数,则转向步骤b3;若发送次数达到预设次数,则转向步骤b4;Step b2: the first microwave network element counts the number of times the heartbeat message is sent, and if the number of sending times does not reach the preset number, turn to step b3; if the number of sending times reaches the preset number, turn to step b4;
步骤b3:若所述第一微波网元在预设时间内接收到所述第二微波网元返回的心跳应答消息,转向步骤b5;若所述第一微波网元在预设时间内未接收到所述第二微波网元返回的心跳应答消息,转向步骤b1;Step b3: If the first microwave network element receives the heartbeat response message returned by the second microwave network element within the preset time, turn to step b5; if the first microwave network element does not receive the heartbeat response message within the preset time To the heartbeat response message returned by the second microwave network element, turn to step b1;
步骤b4:若所述第一微波网元在预设时间内未接收到所述第二微波网元返回的心跳应答消息,则所述第一微波网元将与所述第二微波网元之间的临跳通道标识为断开状态;若所述第一微波网元在预设时间内接收到所述第二微波网元返回的心跳应答消息,转向步骤b5;Step b4: If the first microwave network element does not receive the heartbeat response message returned by the second microwave network element within the preset time, then the first microwave network element will communicate with the second microwave network element The skipping channel between the flags is disconnected; if the first microwave network element receives the heartbeat response message returned by the second microwave network element within the preset time, turn to step b5;
步骤b5:所述第一微波网元将与所述第二微波网元之间的临跳通道标识为连通状态。Step b5: the first microwave network element marks the impending channel with the second microwave network element as connected.
进一步地,所述方法还包括:Further, the method also includes:
步骤c1:所述第一微波网元通过所述临跳通道向所述第二微波网元发送主动断链消息;Step c1: the first microwave network element sends an active link disconnection message to the second microwave network element through the impending channel;
步骤c2:所述第一微波网元对发送所述主动断链消息的次数进行计数,若发送次数未达到预设次数,则转向步骤c3;若发送次数达到预设次数,则转向步骤c4;Step c2: the first microwave network element counts the number of times the active link disconnection message is sent, and if the number of sending times does not reach the preset number, turn to step c3; if the number of sending times reaches the preset number, turn to step c4;
步骤c3:若所述第一微波网元在预设时间内接收到所述第二微波网元返回的断链应答消息,转向步骤c4;若所述第一微波网元在预设时间内未接收到所述第二微波网元返回的断链应答消息,转向步骤c1;Step c3: If the first microwave network element receives the link disconnection response message returned by the second microwave network element within the preset time, turn to step c4; if the first microwave network element fails to After receiving the link disconnection response message returned by the second microwave network element, turn to step c1;
步骤c4:所述第一微波网元将与所述第二微波网元之间的临跳通道标识为断开状态。Step c4: the first microwave network element marks the impending channel with the second microwave network element as disconnected.
本发明实施例还提供了一种微波网元间的信息传输装置,应用于第一微波网元中,所述信息传输装置包括临跳信息管理模块和至少一个收发代理模块,The embodiment of the present invention also provides an information transmission device between microwave network elements, which is applied to the first microwave network element, and the information transmission device includes an impending jump information management module and at least one sending and receiving agent module,
所述临跳信息管理模块用于利用所述收发代理模块通过与相邻的第二微波网元之间的物理连接建立与所述第二微波网元之间的临跳通道,所述第二微波网元与所述收发代理模块一一对应;The impending jump information management module is used to use the transceiving agent module to establish an impending jump channel with the second microwave network element through a physical connection with the adjacent second microwave network element, and the second The microwave network element is in one-to-one correspondence with the transceiving agent module;
所述收发代理模块用于通过所述临跳通道向对应的第二微波网元发送数据。The transceiving proxy module is configured to send data to the corresponding second microwave network element through the impending channel.
进一步地,所述临跳信息管理模块具体用于将网元配置消息发送给所述收发代理模块,所述网元配置消息中包括有所述第一微波网元的网元信息;Further, the impending jump information management module is specifically configured to send a network element configuration message to the sending and receiving agent module, and the network element configuration message includes network element information of the first microwave network element;
所述收发代理模块具体用于接收所述网元配置消息,根据所述网元信息构建建链消息,并通过与对应的第二微波网元之间的物理连接向所述第二微波网元发送所述建链消息,接收所述第二微波网元返回的建链成功消息,所述建链成功消息中携带有所述第二微波网元的网元信息,向所述临跳信息管理模块发送建链上报消息,所述建链上报消息中携带有所述第二微波网元的网元信息;The transceiving agent module is specifically configured to receive the network element configuration message, construct a link establishment message according to the network element information, and send a message to the second microwave network element through a physical connection with the corresponding second microwave network element. Sending the link establishment message, receiving the link establishment success message returned by the second microwave network element, the link establishment success message carrying the network element information of the second microwave network element, and reporting to the impending jump information management The module sends a link establishment report message, and the link establishment report message carries the network element information of the second microwave network element;
所述临跳信息管理模块还用于接收所述建链上报消息,保存所述第二微波网元的网元信息,并将与所述第二微波网元之间的临跳通道标识为连通状态。The impending jump information management module is also configured to receive the link establishment report message, save the network element information of the second microwave network element, and mark the impending jump channel with the second microwave network element as connected state.
进一步地,所述临跳信息管理模块具体用于将待传输的数据存储在缓冲区内,根据待传输的数据构建数据发送消息,并将所述数据发送消息发送给所述收发代理模块;Further, the impending jump information management module is specifically configured to store the data to be transmitted in a buffer, construct a data transmission message according to the data to be transmitted, and send the data transmission message to the sending and receiving agent module;
所述收发代理模块具体用于接收所述数据发送消息,在所述数据发送消息中加入控制信息构建临跳数据消息,通过所述临跳通道将所述临跳数据消息发送给对应的第二微波网元,并对发送所述临跳数据消息的次数进行计数,若发送次数未达到预设次数且在预设时间内未接收到所述第二微波网元返回的接收应答消息,则重新向所述第二微波网元发送所述临跳数据消息;若发送次数达到预设次数或在预设时间内接收到所述第二微波网元返回的接收应答消息,则向所述临跳信息管理模块发送数据应答消息;The transceiving agent module is specifically configured to receive the data sending message, add control information to the data sending message to construct an impending data message, and send the impending data message to the corresponding second data message through the impending channel. microwave network element, and count the number of times of sending the imminent jump data message, if the number of sending times does not reach the preset number of times and the receiving response message returned by the second microwave network element is not received within the preset time, then re- Send the impending data message to the second microwave network element; if the number of times of sending reaches the preset number of times or if the receiving response message returned by the second microwave network element is received within the preset time, send the impending data message to the impending jump The information management module sends a data response message;
所述临跳信息管理模块还用于在接收到数据应答消息时,删除所述缓冲区内存储的待传输的数据。The impending jump information management module is further configured to delete the data to be transmitted stored in the buffer when receiving the data response message.
进一步地,所述收发代理模块还用于通过所述临跳通道向对应的第二微波网元发送心跳消息,并对发送所述心跳消息的次数进行计数,若发送次数未达到预设次数且在预设时间内未接收到所述第二微波网元返回的心跳应答消息,则重新向所述第二微波网元发送所述心跳消息;若发送次数达到预设次数且在预设时间内未接收到所述第二微波网元返回的心跳应答消息,则向所述临跳信息管理模块发送断链上报消息;Further, the transceiving agent module is also used to send a heartbeat message to the corresponding second microwave network element through the impending channel, and count the number of times the heartbeat message is sent, if the number of sending times does not reach the preset number and If the heartbeat response message returned by the second microwave network element is not received within the preset time, then resend the heartbeat message to the second microwave network element; if the number of sending times reaches the preset number and within the preset time If the heartbeat response message returned by the second microwave network element is not received, a link disconnection reporting message is sent to the impending jump information management module;
所述临跳信息管理模块还用于在接收到所述断链上报消息时,将与所述第二微波网元之间的临跳通道标识为断开状态。The impending jump information management module is further configured to mark the impending jump channel with the second microwave network element as disconnected when receiving the link disconnection reporting message.
进一步地,所述临跳信息管理模块还用于通过所述临跳通道向所述收发代理模块发送主动断链消息,并将与所述第二微波网元之间的临跳通道标识为断开状态;Further, the impending jump information management module is further configured to send an active link disconnection message to the transceiver agent module through the impending jump channel, and mark the impending jumping channel with the second microwave network element as disconnected. open state;
所述收发代理模块还用于在接收到所述主动断链消息后,向对应的第二微波网元发送所述主动断链消息,并对发送所述主动断链消息的次数进行计数,若发送次数未达到预设次数且在预设时间内未接收到所述第二微波网元返回的断链应答消息,则重新向所述第二微波网元发送所述主动断链消息;若发送次数达到预设次数或在预设时间内接收到所述第二微波网元返回的断链应答消息,则不再向所述第二微波网元发送所述主动断链消息。The sending and receiving proxy module is further configured to send the active link disconnection message to the corresponding second microwave network element after receiving the active link disconnection message, and count the number of times the active link disconnection message is sent, if The number of sending times does not reach the preset number of times and the link disconnection response message returned by the second microwave network element is not received within the preset time, then resend the active link disconnection message to the second microwave network element; if sending If the number of times reaches the preset number of times or the link disconnection response message returned by the second microwave network element is received within the preset time, the active link disconnection message is no longer sent to the second microwave network element.
本发明实施例还提供了一种微波网元,包括如上所述的微波网元间的信息传输装置。An embodiment of the present invention also provides a microwave network element, including the information transmission device between microwave network elements as described above.
本发明的实施例具有以下有益效果:Embodiments of the present invention have the following beneficial effects:
上述方案中,微波网元通过与相邻的微波网元之间的物理连接建立与相邻的微波网元之间的临跳通道,该建立临跳通道的方式无需知道相邻微波网元的任何信息,因此在本微波网元IP配置不正确的情况依然可以与其它微波网元建立通信连接;在与相邻微波网元建立临跳通道连接后,微波网元可以通过该临跳通道向相邻的微波网元下发自身微波网元的配置信息,然后再使用网管通道与相邻的微波网元网元进行数据交互,也可以直接通过临跳通道与相邻微波网元进行数据交互,通信方式灵活。另外,相邻的两个微波网元之间还可以建立多条临跳通道,只要有一个临跳通道正常则两个相邻微波网元间的信息交换不受影响,从而增加信息交互的可靠性。In the above solution, the microwave network element establishes the impending channel with the adjacent microwave network element through the physical connection with the adjacent microwave network element. The method of establishing the impending channel does not need to know the status of the adjacent microwave network element Therefore, when the IP configuration of this microwave network element is incorrect, it can still establish communication connections with other microwave network elements; after establishing a temporary jump channel connection with an adjacent microwave network element, the microwave network element can send Adjacent microwave network elements deliver their own configuration information, and then use network management channels to exchange data with adjacent microwave network elements, or directly communicate with adjacent microwave network elements through temporary channels , Flexible communication methods. In addition, multiple temporary jump channels can be established between two adjacent microwave network elements. As long as one temporary jump channel is normal, the information exchange between two adjacent microwave network elements will not be affected, thereby increasing the reliability of information exchange. sex.
附图说明Description of drawings
图1为本发明实施例的微波网元间的信息传输方法的流程示意图;FIG. 1 is a schematic flowchart of an information transmission method between microwave network elements according to an embodiment of the present invention;
图2为本发明实施例的微波网元间的信息传输装置的结构示意图;2 is a schematic structural diagram of an information transmission device between microwave network elements according to an embodiment of the present invention;
图3是本发明实施例组成临跳通道的两个微波网元的结构示意图;FIG. 3 is a schematic structural diagram of two microwave network elements forming an impending channel according to an embodiment of the present invention;
图4是本发明实施例临跳通道建链的流程示意图;Fig. 4 is a schematic flow chart of building a link in a temporary channel according to an embodiment of the present invention;
图5是本发明实施例临跳数据消息收发的流程示意图;FIG. 5 is a schematic flow diagram of the sending and receiving of impending data messages according to an embodiment of the present invention;
图6是本发明实施例临跳通道保活超时断链的流程示意图;Fig. 6 is a schematic flow diagram of the link-breaking of the impending channel keep-alive overtime in the embodiment of the present invention;
图7是本发明实施例临跳通道主动断链的流程示意图。Fig. 7 is a schematic flow diagram of the active link disconnection of the impending channel according to the embodiment of the present invention.
具体实施方式detailed description
为使本发明的实施例要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。In order to make the technical problems, technical solutions and advantages to be solved by the embodiments of the present invention clearer, the following will describe in detail with reference to the drawings and specific embodiments.
本发明的实施例针对现有技术中微波网元必须在获知网元管理系统的IP地址或自身IP地址设置正确的情况下,才能建立本网元与其它微波网元之间的网管通道的问题,提供一种微波网元及微波网元间的信息传输方法、装置,无需知道相邻网元的任何信息,即可实现微波网元之间的通信。The embodiment of the present invention aims at the problem in the prior art that the microwave network element must know the IP address of the network element management system or set its own IP address correctly before establishing a network management channel between the network element and other microwave network elements The invention provides a microwave network element and an information transmission method and device between microwave network elements, which can realize communication between microwave network elements without knowing any information of adjacent network elements.
图1为本发明实施例的微波网元间的信息传输方法的流程示意图,如图1所示,本实施例包括:FIG. 1 is a schematic flowchart of an information transmission method between microwave network elements according to an embodiment of the present invention. As shown in FIG. 1 , this embodiment includes:
步骤101:第一微波网元通过与相邻的第二微波网元之间的物理连接建立与第二微波网元之间的临跳通道;Step 101: the first microwave network element establishes an impending channel with the second microwave network element through a physical connection with the adjacent second microwave network element;
步骤102:第一微波网元通过临跳通道向第二微波网元发送数据。Step 102: the first microwave network element sends data to the second microwave network element through the impending channel.
进一步地,第一微波网元通过与相邻的第二微波网元之间的物理连接建立与第二微波网元之间的临跳通道包括:Further, establishing the impending channel between the first microwave network element and the second microwave network element through the physical connection with the adjacent second microwave network element includes:
第一微波网元根据自身的网元信息构建建链消息;The first microwave network element constructs a link establishment message according to its own network element information;
第一微波网元通过与相邻的第二微波网元之间的物理连接向第二微波网元发送建链消息;The first microwave network element sends a link establishment message to the second microwave network element through a physical connection with the adjacent second microwave network element;
第一微波网元接收第二微波网元返回的建链成功消息,建链成功消息中携带有第二微波网元的网元信息;The first microwave network element receives the link establishment success message returned by the second microwave network element, and the link establishment success message carries the network element information of the second microwave network element;
第一微波网元保存第二微波网元的网元信息,并将与第二微波网元之间的临跳通道标识为连通状态。The first microwave network element saves the network element information of the second microwave network element, and marks the impending channel with the second microwave network element as a connected state.
进一步地,第一微波网元通过临跳通道向第二微波网元发送数据包括:Further, the sending of data by the first microwave network element to the second microwave network element through the impending channel includes:
步骤a1:第一微波网元将待传输的数据存储在缓冲区内,根据待传输的数据构建数据发送消息,并在数据发送消息中加入控制信息构建临跳数据消息;Step a1: the first microwave network element stores the data to be transmitted in the buffer, constructs a data transmission message according to the data to be transmitted, and adds control information to the data transmission message to construct a temporary data message;
步骤a2:第一微波网元通过临跳通道将临跳数据消息发送给第二微波网元;Step a2: the first microwave network element sends the impending jump data message to the second microwave network element through the impending jump channel;
步骤a3:第一微波网元对发送临跳数据消息的次数进行计数,若发送次数未达到预设次数,则转向步骤a4;若发送次数达到预设次数,则转向步骤a5;Step a3: the first microwave network element counts the number of times of sending the impending jump data message, if the number of sending times does not reach the preset number of times, turn to step a4; if the number of times of sending reaches the preset number of times, turn to step a5;
步骤a4:若第一微波网元在预设时间内接收到第二微波网元返回的接收应答消息,转向步骤a5;若第一微波网元在预设时间内未接收到第二微波网元返回的接收应答消息,转向步骤a2;Step a4: If the first microwave network element receives the reception response message returned by the second microwave network element within the preset time, turn to step a5; if the first microwave network element does not receive the second microwave network element within the preset time For the received response message returned, turn to step a2;
步骤a5:第一微波网元删除缓冲区内存储的待传输的数据。Step a5: the first microwave network element deletes the data to be transmitted stored in the buffer.
进一步地,微波网元间的信息传输方法还包括:Further, the information transmission method between microwave network elements also includes:
步骤b1:第一微波网元通过临跳通道向第二微波网元发送心跳消息;Step b1: the first microwave network element sends a heartbeat message to the second microwave network element through the impending channel;
步骤b2:第一微波网元对发送心跳消息的次数进行计数,若发送次数未达到预设次数,则转向步骤b3;若发送次数达到预设次数,则转向步骤b4;Step b2: the first microwave network element counts the number of times the heartbeat message is sent, and if the number of sending times does not reach the preset number, turn to step b3; if the number of sending times reaches the preset number, turn to step b4;
步骤b3:若第一微波网元在预设时间内接收到第二微波网元返回的心跳应答消息,转向步骤b5;若第一微波网元在预设时间内未接收到第二微波网元返回的心跳应答消息,转向步骤b1;Step b3: If the first microwave network element receives the heartbeat response message returned by the second microwave network element within the preset time, turn to step b5; if the first microwave network element does not receive the second microwave network element within the preset time For the returned heartbeat response message, turn to step b1;
步骤b4:若第一微波网元在预设时间内未接收到第二微波网元返回的心跳应答消息,则第一微波网元将与第二微波网元之间的临跳通道标识为断开状态;若第一微波网元在预设时间内接收到第二微波网元返回的心跳应答消息,转向步骤b5;Step b4: If the first microwave network element does not receive the heartbeat response message returned by the second microwave network element within the preset time, the first microwave network element marks the impending channel with the second microwave network element as disconnected On state; if the first microwave network element receives the heartbeat response message returned by the second microwave network element within the preset time, turn to step b5;
步骤b5:第一微波网元将与第二微波网元之间的临跳通道标识为连通状态。Step b5: the first microwave network element marks the impending channel with the second microwave network element as connected.
进一步地,微波网元间的信息传输方法还包括:Further, the information transmission method between microwave network elements also includes:
步骤c1:第一微波网元通过临跳通道向第二微波网元发送主动断链消息;Step c1: the first microwave network element sends an active link disconnection message to the second microwave network element through the impending channel;
步骤c2:第一微波网元对发送主动断链消息的次数进行计数,若发送次数未达到预设次数,则转向步骤c3;若发送次数达到预设次数,则转向步骤c4;Step c2: the first microwave network element counts the number of times the active link disconnection message is sent, and if the number of sending times does not reach the preset number, turn to step c3; if the number of sending times reaches the preset number, turn to step c4;
步骤c3:若第一微波网元在预设时间内接收到第二微波网元返回的断链应答消息,转向步骤c4;若第一微波网元在预设时间内未接收到第二微波网元返回的断链应答消息,转向步骤c1;Step c3: If the first microwave network element receives the link disconnection response message returned by the second microwave network element within the preset time, turn to step c4; if the first microwave network element does not receive the second microwave network element within the preset time Yuan returns the broken link response message, turn to step c1;
步骤c4:第一微波网元将与第二微波网元之间的临跳通道标识为断开状态。Step c4: the first microwave network element marks the impending channel with the second microwave network element as disconnected.
本实施例中,微波网元通过与相邻的微波网元之间的物理连接建立与相邻的微波网元之间的临跳通道,该建立临跳通道的方式无需知道相邻微波网元的任何信息,因此在本微波网元IP配置不正确的情况依然可以与其它微波网元建立通信连接;在与相邻微波网元建立临跳通道连接后,微波网元可以通过该临跳通道向相邻的微波网元下发自身微波网元的配置信息,然后再使用网管通道与相邻的微波网元网元进行数据交互,也可以直接通过临跳通道与相邻微波网元进行数据交互,通信方式灵活。此外,微波网元可以与相邻的微波网元建立多个临跳通道,这时只要有一个临跳通道正常则两个相邻微波网元间的信息交换不受影响,增加了信息传输的可靠性。In this embodiment, the microwave network element establishes the impending channel with the adjacent microwave network element through the physical connection with the adjacent microwave network element, and the way of establishing the impending channel does not need to know the adjacent microwave network element Therefore, when the IP configuration of this microwave network element is incorrect, it can still establish a communication connection with other microwave network elements; after establishing a temporary jump channel connection with an adjacent microwave network element, the microwave network element can pass through the temporary jump channel Send the configuration information of its own microwave network element to the adjacent microwave network element, and then use the network management channel to exchange data with the adjacent microwave network element, or directly communicate with the adjacent microwave network element through the temporary jump channel Interactive, flexible communication. In addition, microwave network elements can establish multiple temporary jump channels with adjacent microwave network elements. At this time, as long as one temporary jump channel is normal, the information exchange between two adjacent microwave network elements will not be affected, which increases the time for information transmission. reliability.
图2为本发明实施例的微波网元间的信息传输装置的结构示意图,如图2所示,本实施例的微波网元间的信息传输装置应用于第一微波网元中,包括临跳信息管理模块20和至少一个收发代理模块21,Figure 2 is a schematic structural diagram of an information transmission device between microwave network elements according to an embodiment of the present invention. As shown in Figure 2, the information transmission device between microwave network elements in this embodiment is applied to the first microwave network element, including the information management module 20 and at least one transceiving agent module 21,
临跳信息管理模块20用于利用收发代理模块21通过与相邻的第二微波网元之间的物理连接建立与第二微波网元之间的临跳通道,第二微波网元与收发代理模块21一一对应;The impending jump information management module 20 is used to utilize the transceiver agent module 21 to establish an impending jump channel with the second microwave network element through the physical connection between the adjacent second microwave network element, and the second microwave network element and the transceiver agent One-to-one correspondence between modules 21;
收发代理模块21用于通过临跳通道向对应的第二微波网元发送数据。The transceiving proxy module 21 is configured to send data to the corresponding second microwave network element through the impending channel.
进一步地,临跳信息管理模块20具体用于将网元配置消息发送给收发代理模块21,网元配置消息中包括有第一微波网元的网元信息;Further, the impending jump information management module 20 is specifically configured to send a network element configuration message to the transceiver agent module 21, and the network element configuration message includes the network element information of the first microwave network element;
收发代理模块21具体用于接收网元配置消息,根据网元信息构建建链消息,并通过与对应的第二微波网元之间的物理连接向第二微波网元发送建链消息,接收第二微波网元返回的建链成功消息,建链成功消息中携带有第二微波网元的网元信息,向临跳信息管理模块20发送建链上报消息,建链上报消息中携带有第二微波网元的网元信息;The transceiver agent module 21 is specifically used to receive network element configuration messages, build a link establishment message according to network element information, and send a link establishment message to the second microwave network element through a physical connection with the corresponding second microwave network element, and receive the second microwave network element. In the link establishment success message returned by the second microwave network element, the link establishment success message carries the network element information of the second microwave network element, and sends a link establishment report message to the impending jump information management module 20, and the link establishment report message carries the second Network element information of microwave network elements;
临跳信息管理模块20还用于接收建链上报消息,保存第二微波网元的网元信息,并将与第二微波网元之间的临跳通道标识为连通状态。The impending jump information management module 20 is also configured to receive a link establishment report message, save the network element information of the second microwave network element, and mark the impending jump channel with the second microwave network element as a connected state.
进一步地,临跳信息管理模块20具体用于将待传输的数据存储在缓冲区内,根据待传输的数据构建数据发送消息,并将数据发送消息发送给收发代理模块21;Further, the impending jump information management module 20 is specifically configured to store the data to be transmitted in the buffer, construct a data transmission message according to the data to be transmitted, and send the data transmission message to the transceiver agent module 21;
收发代理模块21具体用于接收数据发送消息,在数据发送消息中加入控制信息构建临跳数据消息,通过临跳通道将临跳数据消息发送给对应的第二微波网元,并对发送临跳数据消息的次数进行计数,若发送次数未达到预设次数且在预设时间内未接收到第二微波网元返回的接收应答消息,则重新向第二微波网元发送临跳数据消息;若发送次数达到预设次数或在预设时间内接收到第二微波网元返回的接收应答消息,则向临跳信息管理模块20发送数据应答消息;The transceiving agent module 21 is specifically used for receiving data transmission messages, adding control information in the data transmission messages to construct impending data messages, sending the impending data messages to corresponding second microwave network elements through impending channels, and sending impending The number of data messages is counted, and if the number of sending times does not reach the preset number of times and the receiving response message returned by the second microwave network element is not received within the preset time, the impending jump data message is re-sent to the second microwave network element; if When the number of times of transmission reaches the preset number of times or a receiving response message returned by the second microwave network element is received within the preset time, a data response message is sent to the impending jump information management module 20;
临跳信息管理模块20还用于在接收到数据应答消息时,删除缓冲区内存储的待传输的数据。The impending jump information management module 20 is also configured to delete the data to be transmitted stored in the buffer when receiving the data response message.
进一步地,收发代理模块21还用于通过临跳通道向对应的第二微波网元发送心跳消息,并对发送心跳消息的次数进行计数,若发送次数未达到预设次数且在预设时间内未接收到第二微波网元返回的心跳应答消息,则重新向第二微波网元发送心跳消息;若发送次数达到预设次数且在预设时间内未接收到第二微波网元返回的心跳应答消息,则向临跳信息管理模块20发送断链上报消息;Further, the transceiving agent module 21 is also configured to send a heartbeat message to the corresponding second microwave network element through the impending channel, and count the number of times the heartbeat message is sent, if the number of sending times does not reach the preset number and within the preset time If the heartbeat response message returned by the second microwave network element is not received, the heartbeat message is re-sent to the second microwave network element; if the number of sending times reaches the preset number and the heartbeat message returned by the second microwave network element is not received within the preset time Response message, then send broken link report message to imminent jump information management module 20;
临跳信息管理模块20还用于在接收到断链上报消息时,将与第二微波网元之间的临跳通道标识为断开状态。The impending jump information management module 20 is further configured to mark the impending jump channel with the second microwave network element as disconnected when receiving the link disconnection reporting message.
进一步地,临跳信息管理模块20还用于通过临跳通道向收发代理模块21发送主动断链消息,并将与第二微波网元之间的临跳通道标识为断开状态;Further, the impending jump information management module 20 is also configured to send an active link disconnection message to the transceiver agent module 21 through the impending jump channel, and mark the impending jump channel with the second microwave network element as a disconnected state;
收发代理模块21还用于在接收到主动断链消息后,向对应的第二微波网元发送主动断链消息,并对发送主动断链消息的次数进行计数,若发送次数未达到预设次数且在预设时间内未接收到第二微波网元返回的断链应答消息,则重新向第二微波网元发送主动断链消息;若发送次数达到预设次数或在预设时间内接收到第二微波网元返回的断链应答消息,则不再向第二微波网元发送主动断链消息。The sending and receiving agent module 21 is also used to send the active link disconnection message to the corresponding second microwave network element after receiving the active link disconnection message, and count the number of times the active link disconnection message is sent, if the number of sending times does not reach the preset number And the link disconnection response message returned by the second microwave network element is not received within the preset time, then the active link disconnection message is resent to the second microwave network element; If the link disconnection response message is returned by the second microwave network element, no active link disconnection message is sent to the second microwave network element.
利用本实施例的微波网元间的信息传输装置,微波网元通过与相邻的微波网元之间的物理连接建立与相邻的微波网元之间的临跳通道,该建立临跳通道的方式无需知道相邻微波网元的任何信息,因此在本微波网元IP配置不正确的情况依然可以与其它微波网元建立通信连接;在与相邻微波网元建立临跳通道连接后,微波网元可以通过该临跳通道向相邻的微波网元下发自身微波网元的配置信息,然后再使用网管通道与相邻的微波网元网元进行数据交互,也可以直接通过临跳通道与相邻微波网元进行数据交互,通信方式灵活。此外,微波网元间的信息传输装置可以同时使用多个收发代理模与相邻微波网元建立多个临跳通道,这时只要有一个临跳通道正常则两个相邻微波网元间的信息交换不受影响,增加了信息传输的可靠性。Utilizing the information transmission device between microwave network elements in this embodiment, the microwave network element establishes the impending channel with the adjacent microwave network element through the physical connection with the adjacent microwave network element, and the establishment of the impending channel The method does not need to know any information about the adjacent microwave network elements, so it can still establish communication connections with other microwave network elements when the IP configuration of this microwave network element is incorrect; after establishing a temporary jump channel connection with the adjacent microwave network elements, The microwave network element can send its configuration information to the adjacent microwave network element through the temporary jump channel, and then use the network management channel to exchange data with the adjacent microwave network element, or directly through the temporary jump channel. The channel performs data interaction with adjacent microwave network elements, and the communication mode is flexible. In addition, the information transmission device between microwave network elements can simultaneously use multiple transceiver modules to establish multiple impending channels with adjacent microwave network elements. At this time, as long as one impending channel is normal, the communication between two adjacent microwave network elements Information exchange is not affected, increasing the reliability of information transmission.
本发明实施例还提供了一种微波网元,包括如图2所示的微波网元间的信息传输装置。An embodiment of the present invention also provides a microwave network element, including an information transmission device between microwave network elements as shown in FIG. 2 .
本发明实施例中,每一微波网元都包括有临跳信息管理模块和至少一个收发代理模块,每一个收发代理模块与相邻的微波网元一一对应,收发代理模块与对应微波网元的收发代理模块之间建立临跳通道,通过该临跳通道可以实现相邻的两个微波网元之间的通信。其中,临跳信息管理模块负责本微波网元信息(网元ID(Identity,标识),IP地址等)的配置,与本微波网元建立连接的所有微波网元的信息的维护和管理以及对从临跳通道接收的数据消息进行处理。收发代理模块负责将本微波网元的消息通过微波链路发送到相邻微波网元并接收相邻微波网元发来的消息,另外还需实时将与自己相连的相邻微波网元的临跳通道的通断状态上报给临跳信息管理模块。In the embodiment of the present invention, each microwave network element includes an impending jump information management module and at least one transceiver agent module, each transceiver agent module is in one-to-one correspondence with adjacent microwave network elements, and the transceiver agent module and the corresponding microwave network element An impending channel is established between the sending and receiving agent modules, and the communication between two adjacent microwave network elements can be realized through the impending channel. Among them, the temporary jump information management module is responsible for the configuration of the microwave network element information (network element ID (Identity, mark), IP address, etc.), the maintenance and management of the information of all microwave network elements connected to the microwave network element, and the Data messages received from the impending channel are processed. The sending and receiving agent module is responsible for sending the message of the microwave network element to the adjacent microwave network element through the microwave link and receiving the message sent by the adjacent microwave network element. The on-off status of the jump channel is reported to the impending jump information management module.
微波网元之间是成对传输数据的,如图3所示,微波网元与相邻的另一个微波网元构成一临跳通道,其中微波网元中的临跳信息管理模块与收发代理模块之间的消息有8种:网元配置消息101、数据发送消息201、主动断链消息303、建链上报消息104、数据应答消息202、断链上报消息302、数据接收消息205和接收应答消息203。相邻微波网元的两个收发代理模块之间的消息有8种:建链消息102、临跳数据消息201、主动断链消息302、保活消息301、数据应答消息103、保活应答消息301和断链应答消息303。Data is transmitted in pairs between microwave network elements. As shown in Figure 3, a microwave network element and another adjacent microwave network element form a temporary jump channel, in which the temporary jump information management module in the microwave network element and the transceiver agent There are 8 types of messages between modules: network element configuration message 101, data sending message 201, active link disconnection message 303, link establishment reporting message 104, data response message 202, link disconnection reporting message 302, data receiving message 205 and receiving response Message 203. There are 8 types of messages between two sending and receiving agent modules of adjacent microwave network elements: link establishment message 102, impending data message 201, active link disconnection message 302, keep-alive message 301, data response message 103, keep-alive response message 301 and broken link response message 303.
下面结合图4-图7对本发明的微波网元间的信息传输方法进行详细介绍:The information transmission method between microwave network elements of the present invention is described in detail below in conjunction with FIGS. 4-7 :
图4是本发明实施例临跳通道建链的流程示意图,如图4所示,相邻的两个微波网元之间建立临跳通道的过程包括以下流程:Fig. 4 is a schematic flow chart of link establishment of a temporary channel according to an embodiment of the present invention. As shown in Fig. 4, the process of establishing a temporary channel between two adjacent microwave network elements includes the following process:
本实施例中为了区分相邻的两个微波网元,将主动发起建链的微波网元称之为第一微波网元,另一个微波网元称之为第二微波网元,该两个微波网元的结构并无差别。相邻的微波网元之间存在微波无线链路,如图3所示,第一微波网元在上电后,本网元内所有的收发代理模块向临跳信息管理模块进行注册,注册后临跳信息管理模块将本微波网元的网元配置消息101发送给所有注册的收发代理模块,网元配置消息101中包括有本微波网元的网元信息,包括但不限于网元标识、网元名称、设备类型、网元IP、子网掩码、默认网关、MAC(介质访问控制)地址、收发代理模块标识(即收发代理模块的序号)和链路状态等等,收发代理模块将接收到的网元信息保存起来并周期性地向与本收发代理模块有物理连接的微波网元发送建链消息;In this embodiment, in order to distinguish two adjacent microwave network elements, the microwave network element that initiates link establishment is called the first microwave network element, and the other microwave network element is called the second microwave network element. There is no difference in the structure of microwave network elements. There are microwave wireless links between adjacent microwave network elements. As shown in Figure 3, after the first microwave network element is powered on, all the sending and receiving agent modules in this network element register with the temporary jump information management module. The impending jump information management module sends the network element configuration message 101 of the microwave network element to all registered sending and receiving agent modules. The network element configuration message 101 includes the network element information of the microwave network element, including but not limited to the network element identification, Network element name, device type, network element IP, subnet mask, default gateway, MAC (media access control) address, sending and receiving agent module identification (ie, the serial number of the sending and receiving agent module) and link status, etc., the sending and receiving agent module will The received network element information is saved and periodically sends a link establishment message to the microwave network element that is physically connected to the transceiver agent module;
收发代理模块根据本地保存的网元信息构建一条建链消息102,该建链消息中包括但不限于如下内容:The sending and receiving agent module constructs a link building message 102 according to the network element information saved locally, and the link building message includes but is not limited to the following content:
a.网元IDa. Network element ID
b.网元名称b. Network element name
c.设备类型c. Device type
d.网元IPd. Network element IP
e.子网掩码e. Subnet mask
f.默认网关f. Default gateway
g.MAC地址g. MAC address
f.收发代理模块标识f. Transceiver agent module identification
i.链路状态i. Link status
构建完建链消息后,收发代理模块周期性地通过与相邻的第二微波网元之间的物理连接向第二微波网元的收发代理模块发送该建链消息,具体地,第一微波网元与第二微波网元之间的物理连接为微波无线链路;After constructing the link establishment message, the transceiver agent module periodically sends the link establishment message to the transceiver agent module of the second microwave network element through the physical connection with the adjacent second microwave network element, specifically, the first microwave network element The physical connection between the network element and the second microwave network element is a microwave wireless link;
第二微波网元的收发代理模块收到该建链消息后,向第一微波网元的收发代理模块回复建链成功消息103,该建链成功消息的格式与建链消息相同,但其中的网元信息填的是第二微波网元的网元信息;After the transceiver agent module of the second microwave network element receives the link establishment message, it replies a link establishment success message 103 to the transceiver agent module of the first microwave network element. The format of the link establishment success message is the same as that of the link establishment message, but the The network element information is filled with the network element information of the second microwave network element;
第一微波网元的收发代理模块收到第二微波网元发送的建链成功消息103后,将第二微波网元的网元信息通过建链上报消息104上报给本微波网元的临跳信息管理模块,临跳信息管理模块将第二微波网元的网元信息保存在本地并标识与第二微波网元的临跳通道状态为连通状态。After receiving the link establishment success message 103 sent by the second microwave network element, the transceiver agent module of the first microwave network element reports the network element information of the second microwave network element to the impending jump of the microwave network element through the link establishment report message 104 The information management module stores the network element information of the second microwave network element locally and identifies the state of the impending channel with the second microwave network element as a connected state.
通过上述流程,第一微波网元与第二微波网元可以获知双方的网元信息,由此建立第一微波网元与第二微波网元之间的临跳通道,该临跳通道的建立基于相邻微波网元之间的物理连接,而不基于TCP/IP协议也无需知道相邻微波网元的任何信息,因此在本微波网元IP配置不正确的情况依然可以与其它微波网元建立通信连接。微波网元可以与所有与自己有物理连接的微波网元建立临跳通道,进行信息交互时可以选择任何一个临跳通道,只要有一个临跳通道能够正常通信,就可通过该临跳通道将信息发送给网络内的其它微波网元。此外,微波网元可以同时使用多个收发代理模与相邻微波网元建立多个临跳通道,这时只要有一个临跳通道正常则两个相邻微波网元间的信息交换不受影响,增加了信息传输的可靠性。Through the above process, the first microwave network element and the second microwave network element can obtain the network element information of both parties, thereby establishing the impending channel between the first microwave network element and the second microwave network element, the establishment of the impending channel Based on the physical connection between adjacent microwave network elements, it is not based on the TCP/IP protocol and does not need to know any information about adjacent microwave network elements. Therefore, if the IP configuration of this microwave network element is incorrect, it can still communicate with other microwave network elements. Establish a communication connection. A microwave network element can establish a temporary channel with all microwave network elements that are physically connected to itself, and can choose any temporary channel when exchanging information. As long as there is a temporary channel that can communicate normally, it can use this temporary channel to The information is sent to other microwave network elements in the network. In addition, the microwave network element can use multiple sending and receiving agent modules to establish multiple temporary jump channels with adjacent microwave network elements. At this time, as long as one temporary jump channel is normal, the information exchange between two adjacent microwave network elements will not be affected. , increasing the reliability of information transmission.
在第二微波网元需要主动与第一微波网元建立临跳通道时,可以采用与上述流程相同的方式建立与第一微波网元之间的临跳通道。When the second microwave network element needs to actively establish an impending channel with the first microwave network element, it can establish an impending channel with the first microwave network element in the same manner as the above process.
图5是本发明实施例临跳数据消息收发的流程示意图,如图5所示,相邻的两个微波网元通过临跳通道传输数据的过程包括以下流程:Fig. 5 is a schematic flow diagram of the sending and receiving of impending data messages according to an embodiment of the present invention. As shown in Fig. 5, the process of transmitting data between two adjacent microwave network elements through the impending channel includes the following flow:
本实施例中为了区分发送端微波网元和接收端微波网元,将发送端的微波网元称之为第一微波网元,接收端的微波网元称之为第二微波网元,该两个微波网元的结构并无差别。在第一微波网元内的任何应用需要向第二微波网元发送数据时首先将数据发送给临跳信息管理模块,临跳信息管理模块首先将该待传输的数据缓存在缓冲区中,若缓冲区已满则根据预先设置的策略选择删除缓冲区内已有的数据或者丢弃新数据。临跳信息管理模块根据该待传输的数据构建数据发送消息201,对该数据发送消息编号,接着查询与目的微波网元相对应的是哪个收发代理模块,若该收发代理模块的临跳通道的状态为连通状态,则将数据发送消息201发送到该收发代理模块,若该收发代理模块的临跳通道的状态不为连通状态则暂不发送;In this embodiment, in order to distinguish the microwave network element at the sending end from the microwave network element at the receiving end, the microwave network element at the sending end is called the first microwave network element, and the microwave network element at the receiving end is called the second microwave network element. There is no difference in the structure of microwave network elements. When any application in the first microwave network element needs to send data to the second microwave network element, it first sends the data to the impending jump information management module, and the impending jump information management module first caches the data to be transmitted in the buffer, if When the buffer is full, the existing data in the buffer will be deleted or new data will be discarded according to the preset strategy. The impending jump information management module constructs a data sending message 201 according to the data to be transmitted, sends a message number to the data, and then inquires which transceiver agent module is corresponding to the destination microwave network element, if the impending jump channel of the transceiver agent module is State is connected state, then data sending message 201 is sent to this transceiver agent module, if the state of the impending channel of this transceiver agent module is not then temporarily not sent for connected state;
收发代理模块收到数据发送消息201后将在该数据发送消息中加入一定的控制信息构建临跳数据消息202并发送给目的微波网元(即第二微波网元)的收发代理模块,接着设置超时等待定时器,若在超时后未收到对该临跳数据消息的接收应答消息则再次发送该临跳数据消息直到连续发送预设次数(具体可以为3次)均未收到接收应答消息则不再发送。如收到该临跳数据消息的接收应答消息203,则构建数据应答消息204向本微波网元(即第一微波网元)的临跳消息管理模块上报已成功接收的数据发送消息的序号,临跳信息管理模块从缓冲区中将已成功接收的数据删掉。After receiving the data transmission message 201, the transceiver agent module will add certain control information in the data transmission message to construct the impending data message 202 and send it to the transceiver agent module of the destination microwave network element (i.e. the second microwave network element), and then set Overtime waiting timer, if the receiving response message of the impending data message is not received after the timeout, then the impending data message is sent again until the preset number of consecutive sendings (specifically, 3 times) does not receive the receiving acknowledgment message will not be sent. As receiving the receiving response message 203 of this imminent jump data message, then construct the data response message 204 and report the sequence number of the data sending message successfully received to the imminent jump message management module of this microwave network element (i.e. the first microwave network element), The impending jump information management module deletes the successfully received data from the buffer.
其中,目的微波网元使用不同的消息号来区别不同类别的临跳数据消息,需要处理某种消息号的临跳数据消息时,首先使用相应注册接口向本地微波网元的临跳消息管理模块进行注册,注册的内容包括消息号和对该消息号的临跳数据消息进行处理的处理函数,注册后临跳信息管理模块将注册的内容保存在一个消息处理注册表中。Among them, the destination microwave network element uses different message numbers to distinguish different types of impending data messages. When it is necessary to process impending data messages of a certain message number, it first uses the corresponding registration interface to register the impending message management module of the local microwave network element. Register. The registered content includes the message number and the processing function for processing the impending data message of the message number. After registration, the impending jump information management module saves the registered content in a message processing registry.
在目的微波网元的收发代理模块接收到从临跳通道发送来的临跳数据消息202后先进行CRC(CyclicRedundancyCheck,循环冗余校验码)校验,若校验成功则在剥除第一微波网元添加的控制信息后向临跳信息管理模块转发该临跳数据消息,如CRC校验失败则丢弃该临跳数据消息。目的微波网元的临跳信息管理模块收到本微波网元的收发代理模块发来的数据接收消息205后通过收发代理模块向对端微波网元返回接收应答消息203告知成功接收到的临跳数据消息的序号,然后检索自身的消息处理注册表,若找到与接收到的临跳数据消息的消息号相同的表项,则使用该表项中的消息处理函数处理接收到的临跳数据消息,若未找到匹配的表项则丢弃该临跳数据消息。Carry out CRC (CyclicRedundancyCheck, Cyclic Redundancy Check Code) check first after receiving the impending jump data message 202 sent from the impending jump channel at the transceiver agent module of the destination microwave network element, if the check is successful, then strip the first After the control information added by the microwave network element, the impending data message is forwarded to the impending information management module, and if the CRC check fails, the impending data message is discarded. The impending jump information management module of the destination microwave network element receives the data receiving message 205 sent by the transceiver agent module of the microwave network element, and then returns a receiving response message 203 to the peer microwave network element through the sending and receiving agent module to inform the successfully received impending jump The serial number of the data message, and then retrieve its own message processing registry, if the entry with the same message number as the received impending data message is found, use the message processing function in the entry to process the received impending data message , if no matching entry is found, the impending data message is discarded.
本实施例中,微波网元在与相邻的微波网元建立临跳通道连接后,可以通过该临跳通道下发网元配置信息(IP地址、网管等)与其它微波网元建立网管通道,然后再使用网管通道与其它微波网元进行数据交互。微波网元还可以直接通过临跳通道与其它微波网元进行数据交互,通信方式灵活。In this embodiment, after a microwave network element establishes a temporary channel connection with an adjacent microwave network element, it can issue network element configuration information (IP address, network management, etc.) through the temporary channel to establish a network management channel with other microwave network elements , and then use the network management channel to exchange data with other microwave network elements. The microwave network element can also directly exchange data with other microwave network elements through the temporary jump channel, and the communication mode is flexible.
图6是本发明实施例临跳通道保活超时断链的流程示意图。如图6所示,两个相邻微波网元之间的临跳通道的保活过程包括以下流程:Fig. 6 is a schematic flow diagram of a link-breaking process of an impending channel keep-alive timeout according to an embodiment of the present invention. As shown in Figure 6, the keep-alive process of the impending channel between two adjacent microwave network elements includes the following process:
临跳通道的通信链路建立以后,微波网元的收发代理模块负责链路状态的维护,收发代理模块每隔固定时间会发送一个心跳信息301给与之相连的对端微波网元的收发代理模块,该心跳消息的格式与建链消息的格式相同,但是心跳消息中链路状态使用了不同的标志表明它为心跳消息而不是建链消息;After the communication link of the impending channel is established, the transceiver agent module of the microwave network element is responsible for the maintenance of the link status, and the transceiver agent module will send a heartbeat message 301 to the transceiver agent of the peer microwave network element connected to it at regular intervals module, the format of the heartbeat message is the same as that of the link establishment message, but the link state in the heartbeat message uses a different flag to indicate that it is a heartbeat message rather than a link establishment message;
发送心跳消息后收发代理模块会设置一个超时定时器,如在超时时间内收到对端微波网元的心跳应答消息302则认为链路状态正常,如超时后未收到对端微波网元的心跳应答消息302则重发心跳消息301,当重发次数达到预设次数仍未收到对端微波网元的心跳应答消息302,则认为临跳通道发生故障,收发代理模块向本地微波网元的临跳信息管理模块发送断链上报消息303告知发生故障的微波网元的网元信息,临跳信息管理模块从本地维护的临跳通道信息中找到相应的网元信息并将与该微波网元之间的临跳通道的状态置为断开状态。After sending the heartbeat message, the sending and receiving agent module will set a timeout timer. If it receives the heartbeat response message 302 from the peer microwave network element within the timeout period, it will consider the link status to be normal. The heartbeat response message 302 resends the heartbeat message 301. When the number of retransmissions reaches the preset number of times and still does not receive the heartbeat response message 302 from the peer microwave network element, it is considered that the impending channel fails, and the sending and receiving agent module sends a message to the local microwave network element. The impending jump information management module sends a broken link report message 303 to inform the network element information of the microwave network element that has failed, and the impending jump information management module finds the corresponding network element information from the locally maintained impending channel information and communicates with the microwave network element The state of the impending channel between elements is set to disconnected.
图7是本发明实施例临跳通道主动断链的流程示意图,如图7所示,两个相邻微波网元之间的临跳通道的断链过程包括以下流程:FIG. 7 is a schematic flow diagram of the active link disconnection of the impending channel according to an embodiment of the present invention. As shown in FIG. 7 , the link breaking process of the impending channel between two adjacent microwave network elements includes the following process:
临跳信息管理模块通过收发代理模块发送主动断链消息304给已经建链的对端微波网元,告知断开临跳通道,并将与对端微波网元之间的临跳通道的状态置为断开状态;The impending jump information management module sends an active link disconnection message 304 to the peer microwave network element that has already established a link through the sending and receiving agent module, notifying to disconnect the impending jump channel, and setting the status of the impending jumping channel with the peer microwave network element to is disconnected;
对端微波网元的收发代理模块收到主动断链消息304后,向本地微波网元的收发代理模块回复断链应答消息305,并将主动断链消息304转发给临跳信息管理模块,对端微波网元的临跳信息管理模块收到主动断链消息304后将相应的临跳通道的状态置为断开状态。After receiving the active link disconnection message 304, the sending and receiving agent module of the peer microwave network element replies with a link breaking response message 305 to the sending and receiving agent module of the local microwave network element, and forwards the active link breaking message 304 to the impending jump information management module. After receiving the active link disconnection message 304, the impending information management module of the end microwave network element sets the state of the corresponding impending channel to disconnected.
其中,若本地微波网元连续发送预设次数的主动断链消息304均未收到对端微波网元回复的断链应答消息305,则也认为临跳通道链路断开,由本地临跳信息管理模块将与对端微波网元之间的临跳通道的状态置为断开状态。Wherein, if the local microwave network element continuously sends the preset number of active link disconnection messages 304 and does not receive the link disconnection response message 305 returned by the peer microwave network element, then it is also considered that the link of the impending channel is disconnected, and the local impending link The information management module sets the state of the impending channel with the peer microwave network element as disconnected.
本发明的微波网元间的信息传输方法,微波网元间通信连接的建立不使用基于IP的网络通信协议,简化了通信流程;在建立连接的过程中微波网元无需知道对端微波网元的任何信息也可建立通信连接并交换信息,微波网元之间信息交换的格式可以使用采用任意形式,既可以交换网管数据也可以交换其它业务相关的数据。In the information transmission method between microwave network elements of the present invention, the establishment of communication connections between microwave network elements does not use an IP-based network communication protocol, which simplifies the communication process; in the process of establishing a connection, microwave network elements do not need to know the peer microwave network element Any information can also establish a communication connection and exchange information. The format of information exchange between microwave network elements can be used in any form, which can exchange network management data or other business-related data.
此说明书中所描述的许多功能部件都被称为模块,以便更加特别地强调其实现方式的独立性。Many functional components described in this specification are referred to as modules in order to more particularly emphasize the independence of their implementation.
本发明实施例中,模块可以用软件实现,以便由各种类型的处理器执行。举例来说,一个标识的可执行代码模块可以包括计算机指令的一个或多个物理或者逻辑块,举例来说,其可以被构建为对象、过程或函数。尽管如此,所标识模块的可执行代码无需物理地位于一起,而是可以包括存储在不同位里上的不同的指令,当这些指令逻辑上结合在一起时,其构成模块并且实现该模块的规定目的。In the embodiments of the present invention, the modules may be implemented by software so as to be executed by various types of processors. An identified module of executable code may, by way of example, comprise one or more physical or logical blocks of computer instructions which may, for example, be structured as an object, procedure, or function. Notwithstanding, the executable code of an identified module need not be physically located together, but may include distinct instructions stored in different bits which, when logically combined, constitute the module and implement the specified Purpose.
实际上,可执行代码模块可以是单条指令或者是许多条指令,并且甚至可以分布在多个不同的代码段上,分布在不同程序当中,以及跨越多个存储器设备分布。同样地,操作数据可以在模块内被识别,并且可以依照任何适当的形式实现并且被组织在任何适当类型的数据结构内。所述操作数据可以作为单个数据集被收集,或者可以分布在不同位置上(包括在不同存储设备上),并且至少部分地可以仅作为电子信号存在于系统或网络上。Indeed, a module of executable code may be a single instruction, or many instructions, and may even be distributed over several different code segments, among different programs and across multiple memory devices. Likewise, operational data may be identified within modules, and may be implemented in any suitable form and organized within any suitable type of data structure. The operational data may be collected as a single data set, or may be distributed in different locations (including on different storage devices), and may exist, at least in part, only as electronic signals on a system or network.
在模块可以利用软件实现时,考虑到现有硬件工艺的水平,所以可以以软件实现的模块,在不考虑成本的情况下,本领域技术人员都可以搭建对应的硬件电路来实现对应的功能,所述硬件电路包括常规的超大规模集成(VLSI)电路或者门阵列以及诸如逻辑芯片、晶体管之类的现有半导体或者是其它分立的元件。模块还可以用可编程硬件设备,诸如现场可编程门阵列、可编程阵列逻辑、可编程逻辑设备等实现。When the module can be realized by software, considering the level of the existing hardware technology, the module that can be realized by software, regardless of the cost, those skilled in the art can build the corresponding hardware circuit to realize the corresponding function. The hardware circuit includes conventional very large scale integration (VLSI) circuits or gate arrays as well as existing semiconductors such as logic chips, transistors, or other discrete components. A module may also be implemented in programmable hardware devices such as field programmable gate arrays, programmable array logic, programmable logic devices, and the like.
在本发明各方法实施例中,所述各步骤的序号并不能用于限定各步骤的先后顺序,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,对各步骤的先后变化也在本发明的保护范围之内。In each method embodiment of the present invention, the sequence number of each step can not be used to limit the order of each step. For those of ordinary skill in the art, the order of each step can be changed without paying creative work. Also within the protection scope of the present invention.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210079213.9ACN103327643B (en) | 2012-03-22 | 2012-03-22 | Information transferring method, device between microwave network element and microwave network element |
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210079213.9ACN103327643B (en) | 2012-03-22 | 2012-03-22 | Information transferring method, device between microwave network element and microwave network element |
Publication Number | Publication Date |
---|---|
CN103327643A CN103327643A (en) | 2013-09-25 |
CN103327643Btrue CN103327643B (en) | 2016-03-30 |
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210079213.9AExpired - Fee RelatedCN103327643B (en) | 2012-03-22 | 2012-03-22 | Information transferring method, device between microwave network element and microwave network element |
Country | Link |
---|---|
CN (1) | CN103327643B (en) |
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103701932A (en)* | 2014-01-09 | 2014-04-02 | 北京交通大学 | Method of data transmission in internet of things |
CN106803847A (en)* | 2015-11-26 | 2017-06-06 | 中兴通讯股份有限公司 | A kind of call method, apparatus and system |
CN109392196B (en)* | 2018-10-25 | 2021-05-11 | 北京立达智胜科技有限公司 | Big data analysis method and system based on mobile terminal |
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1716859A (en)* | 2004-07-02 | 2006-01-04 | 阿尔卡特公司 | Transmission Network Restoration Method Supporting Additional Services |
CN101984581A (en)* | 2010-11-04 | 2011-03-09 | 中兴通讯股份有限公司 | Method and system for opening data communication network |
CN103178983A (en)* | 2011-12-26 | 2013-06-26 | 中兴通讯股份有限公司 | Method and device for configuring shortest path first protocol interface area identifications |
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4935202B2 (en)* | 2006-06-20 | 2012-05-23 | 富士通株式会社 | Communications system |
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1716859A (en)* | 2004-07-02 | 2006-01-04 | 阿尔卡特公司 | Transmission Network Restoration Method Supporting Additional Services |
CN101984581A (en)* | 2010-11-04 | 2011-03-09 | 中兴通讯股份有限公司 | Method and system for opening data communication network |
CN103178983A (en)* | 2011-12-26 | 2013-06-26 | 中兴通讯股份有限公司 | Method and device for configuring shortest path first protocol interface area identifications |
Publication number | Publication date |
---|---|
CN103327643A (en) | 2013-09-25 |
Publication | Publication Date | Title |
---|---|---|
CN102893547B (en) | Control the method and apparatus of multiple RAB in a wireless device | |
JP3949288B2 (en) | Gateway device and wireless terminal device | |
ES2294311T3 (en) | SYSTEM TO ALLOW THE CONTROL OF THE PURGE OF A NODE B BY THE RADIO NETWORK SERVICE CONTROLLER. | |
US8488523B2 (en) | Method of transmitting and processing data block of specific protocol layer in wireless communication system | |
CN101369910B (en) | Network system, network device and relay device | |
CN101383686A (en) | Information transmission method and information transmission system | |
JP2009224850A (en) | Radio communication device | |
KR101223870B1 (en) | Concurrent transmission method over multiple radio links | |
US20130294322A1 (en) | Apparatus and method for sequentially transmitting data | |
CN101674235B (en) | Data transmission method and apparatus | |
JP2009260594A (en) | Data communication method | |
US8797879B2 (en) | Method of transmitting and receiving status report in a mobile communication system | |
CN103973414A (en) | Data transmission method and device | |
CN103327643B (en) | Information transferring method, device between microwave network element and microwave network element | |
CN104780065A (en) | Hot spare method and system for TCP (transmission control protocol) | |
US11805193B2 (en) | Point-to-point database synchronization over a transport protocol | |
CN101106506A (en) | Network Information Exchange Method | |
CN103078722B (en) | A kind of method and device of request data retransmission | |
CN108809490B (en) | Signaling message transmission method and device | |
KR100736913B1 (en) | Reliable Data Transmission Method for Wireless Sensor Networks | |
JPWO2007029337A1 (en) | Ad hoc network equipment that reduces data loss | |
WO2019087240A1 (en) | Terminal apparatus, base station apparatus, communication method, and wireless communication system | |
JP3941560B2 (en) | Wireless communication system | |
KR20030094974A (en) | Method of data call traffic frame controlling in mobile system | |
JP5038344B2 (en) | Network system |
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20160330 |