CN100370751C - Methods for broadcasting data over semi-permanent connections - Google Patents
Methods for broadcasting data over semi-permanent connections Download PDFInfo
- Publication number
- CN100370751C CN100370751C CNB2005100328430A CN200510032843A CN100370751C CN 100370751 C CN100370751 C CN 100370751C CN B2005100328430 A CNB2005100328430 A CN B2005100328430A CN 200510032843 A CN200510032843 A CN 200510032843A CN 100370751 C CN100370751 C CN 100370751C
- Authority
- CN
- China
- Prior art keywords
- semi
- permanent connection
- endpoint
- record block
- network
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明涉及一种通过半永久连接广播数据的方法,通过对每条半永久连接及其端点所在的一个机框申请一个记录块,记录该半永久连接的信息和该半永久连接的端点所在的一个机框的连网信息;给每条半永久连接的记录块分配唯一的索引号,记入记录块对应半永久连接所在机框端点的端点信息中,并在第一次连网时下发给各个机框,当半永久连接的端点出现故障时,保证根据端点信息索引到对应的记录块,保证半永久连接正确释放,防止端点汇聚,保证重建连网成功;同时,重建连网时端点代码不需重写,不需消息确认机制,减少了机框间通信量,提高了端点代码重用率,既达到了系统扩容的目的,又可以灵活的实现各种单框的业务。
The invention relates to a method for broadcasting data through a semi-permanent connection. By applying for a record block for each semi-permanent connection and a machine frame where its endpoint is located, the information of the semi-permanent connection and the information of a machine frame where the endpoint of the semi-permanent connection is located are recorded. Networking information: assign a unique index number to each semi-permanent connection record block, record it in the endpoint information of the end point of the chassis where the semi-permanent connection is located, and send it to each chassis when it is connected to the network for the first time. When the endpoint of the connection fails, it is guaranteed to index to the corresponding record block according to the endpoint information, to ensure the correct release of the semi-permanent connection, to prevent the convergence of the endpoints, and to ensure the successful reconstruction of the network; at the same time, the endpoint code does not need to be rewritten when the network is rebuilt, and no message is required The confirmation mechanism reduces the communication volume between the chassis and improves the code reuse rate of the endpoint, which not only achieves the purpose of system expansion, but also flexibly realizes various single-chassis services.
Description
技术领域 technical field
本发明涉及一种通信连网方法,更具体地说,涉及一种利用半永久连接,从一个端点将数据广播到多个端点的方法。The present invention relates to a communication networking method, more specifically, relates to a method for broadcasting data from one end point to multiple end points by using a semi-permanent connection.
背景技术 Background technique
半永久连接,即两个端点始终保持连网状态,如果有端点故障等异常情况发生,要求在异常情况恢复时,及时重建连网。半永久连接的多播,即从一个端点通过多条半永久连接将数据广播到多个端点。如两条半永久连接:A->B(A点到B点的前向连接)和A->D(A点到D点的前向连接),对于A点,存在两条半永久连接,从而将进入A点的数据分别广播到B点和D点。Semi-permanent connection, that is, the two endpoints are always connected to the network. If abnormal conditions such as endpoint failure occur, it is required to rebuild the network in time when the abnormal situation recovers. Multicasting of semi-permanent connections, that is, broadcasting data from one endpoint to multiple endpoints through multiple semi-permanent connections. For example, two semi-permanent connections: A->B (forward connection from point A to point B) and A->D (forward connection from point A to point D), for point A, there are two semi-permanent connections, so that Data coming into point A is broadcast to points B and D respectively.
对于信令监控等业务,就需要半永久多播这样的功能来实现。例如在交换机上建立一条信令半永久连接A<->B(A和B的双向半永久连接),A点为连接其他设备的中继时隙,如果想从C点监控其他设备传入A点的信令,则需要建立另外一条半永久连接A->C,从而实现在C点通过信令监控设备监测信令的功能。For services such as signaling monitoring, functions such as semi-permanent multicast are required to realize. For example, establish a signaling semi-permanent connection A<->B (two-way semi-permanent connection between A and B) on the switch. Point A is the relay time slot for connecting other devices. If you want to monitor other devices from point C to point A Signaling, another semi-permanent connection A->C needs to be established, so as to realize the function of monitoring signaling at point C through the signaling monitoring device.
由于扩容需要,有时需要多个机框通过级连方式,扩大容量。但是由于框间通信的不稳定等原因,会导致各个机框的数据不一致,从而引发问题。例如,如附图1所示,机框1的端点A和机框2的端点B的前向连网A->B,机框间通过3根光纤级连,选择端点C点作为中间时隙,C’表示中间时隙在机框1的时隙,C”表示中间时隙在机框2的时隙。C’和C”通过光纤相连,通过A->C’、C”->B,实现A->B的前向连网。Due to capacity expansion, sometimes multiple chassis need to be cascaded to expand capacity. However, due to reasons such as instability of inter-chassis communication, data in each chassis may be inconsistent, causing problems. For example, as shown in Figure 1, the forward network A->B between endpoint A of chassis 1 and endpoint B of chassis 2 is cascaded through 3 optical fibers, and endpoint C is selected as the intermediate time slot , C' indicates that the middle time slot is in the time slot of chassis 1, and C" means that the middle time slot is in the time slot of chassis 2. C' and C" are connected through optical fibers, through A->C', C"->B , realize the forward networking of A->B.
如果机框1检测到端点A故障,可以断开A和C’之间的连网,然后向机框2下发消息,断开B点和C”之间的连网,但是由于机框间通信的不稳定,如果机框2没有收到断开连网的消息,就不会断开B和C”之间的连网。这样,等待端点A故障消除重建时,再次向机框2下发连接B和C”的连网消息(C”->B),就会由于B点存在连网,而导致端点汇聚,返回失败,半永久连接无法重建。If chassis 1 detects a failure of endpoint A, it can disconnect the network between A and C', and then send a message to chassis 2 to disconnect the network between point B and C", but due to the The communication is not stable. If frame 2 does not receive the message of disconnection, it will not disconnect the connection between B and C". In this way, while waiting for the failure of endpoint A to be eliminated and rebuilt, the network connection message (C”->B) for connecting B and C” will be sent to chassis 2 again, and the endpoints will converge due to the network connection of point B, and return failure , the semi-permanent connection cannot be reestablished.
在多机框条件下,由于信令监控等业务的需要,经常要实现半永久连接的多播。在半永久连接重建时,由于机框间通信的不稳定等异常条件,如果没有及时释放时隙,将会导致端点汇聚,重建失败。In the case of multiple chassis, due to the needs of services such as signaling monitoring, it is often necessary to implement multicast of semi-permanent connections. When the semi-permanent connection is reestablished, due to abnormal conditions such as unstable communication between the chassis, if the time slot is not released in time, the endpoints will converge and the reestablishment will fail.
对于半永久连接,最重要的就是在任何异常情况下,当端点故障消除时,都要在短期内保证半永久连接的重建成功。普通的单框半永久连接,如果有端点故障等异常情况发生,可以拆掉整个连网,等待故障消除时,重建连网。For the semi-permanent connection, the most important thing is to ensure the successful re-establishment of the semi-permanent connection in a short period of time when the endpoint failure is eliminated in any abnormal situation. Ordinary single-chassis semi-permanent connection, if there is an abnormal situation such as an endpoint failure, the entire network can be removed, and the network can be rebuilt when the failure is eliminated.
多机框条件下的半永久连接,如果有异常情况发生,也可以通过拆掉整个连网,在端点故障消除时,重建连网。例如上述半永久连接A->B。如果不存在多播的情况,对于A点和B点,只可能存在一条半永久连接,当A点出现故障,重建连网时,如果B点存在连网,可以在机框2把B点存在的连网全部拆除,然后重建,从而保证不会出现因为端点汇聚,重建失败的情况。For semi-permanent connections under multi-chassis conditions, if an abnormal situation occurs, the entire network can also be dismantled, and the network can be rebuilt when the endpoint fault is eliminated. For example, the above semi-permanent connection A->B. If there is no multicast, there may only be a semi-permanent connection between point A and point B. When point A fails and the network is rebuilt, if point B is connected to the network, the existing point B can be connected to the chassis 2. All the networks are dismantled and then rebuilt, so as to ensure that the reconstruction will not fail due to the aggregation of endpoints.
但是对于多播的情况,B点可能存在很多条半永久连接(B->D,B->E),这种情况就不能通过简单地释放B点的全部连网来保证不发生端点汇聚了。因为如果释放B点的全部连网,可能会错误的释放掉其他半永久连接的部分连网,导致其他半永久连接断掉。But for the case of multicast, there may be many semi-permanent connections (B->D, B->E) at point B. In this case, it is impossible to simply release all the connections of point B to ensure that no endpoint aggregation occurs. Because if all the connections of point B are released, some connections of other semi-permanent connections may be released by mistake, causing other semi-permanent connections to be disconnected.
发明内容 Contents of the invention
本发明要解决的技术问题是,提供一种通过半永久连接广播数据的方法,克服现有技术中存在的在端点出现故障后,由于端点汇聚造成半永久连接重建失败的缺陷。The technical problem to be solved by the present invention is to provide a method for broadcasting data through a semi-permanent connection, which overcomes the defect in the prior art that the semi-permanent connection fails to be rebuilt due to the convergence of the endpoints after the endpoint fails.
为此,本发明采用如下技术方案:一种通过半永久连接广播数据的方法,利用半永久连接在机框内或机框间进行数据传递,其特征在于,所述方法包括如下步骤:For this reason, the present invention adopts the following technical solutions: a method for broadcasting data through a semi-permanent connection, utilizing a semi-permanent connection to perform data transmission in or between the machine frames, characterized in that the method includes the following steps:
S1.对应一条半永久连接和其端点所在的一个机框申请一个记录块,记录该半永久连接的信息和该端点所在的一个机框的连网信息;S1. Apply for a record block corresponding to a semi-permanent connection and a chassis where the endpoint is located, and record the information of the semi-permanent connection and the networking information of a chassis where the endpoint is located;
S2.给每条半永久连接的记录块分配一个唯一的索引号;S2. Assign a unique index number to each semi-permanently connected record block;
S3.将记录块索引号记入记录块对应半永久连接所在机框端点的端点信息中,保证根据端点信息索引到对应的记录块;S3. Record the record block index number into the endpoint information of the end point of the chassis where the record block corresponds to the semi-permanent connection, so as to ensure that the corresponding record block is indexed according to the endpoint information;
S4.所述记录块索引号在第一次建立半永久连接时下发给各个机框;S4. The record block index number is sent to each frame when the semi-permanent connection is established for the first time;
S5.当一条半永久连接的一端点出现故障时,根据该端点信息中的索引号索引到对应的记录块,根据所述记录块的半永久连接信息,分别向目标端点发送拆网消息,并拆除相应的半永久连接;S5. When an endpoint of a semi-permanent connection fails, index to the corresponding record block according to the index number in the endpoint information, and send a network teardown message to the target endpoint respectively according to the semi-permanent connection information of the record block, and remove the corresponding semi-permanent connection;
S6.当一条半永久连接的一端点故障消除时,根据该端点信息中的索引号索引到对应的记录块,根据所述记录块的半永久连接信息,分别向目标端点发送连网消息,在该连网消息中携带对应记录块索引号,根据记录块信息重建对应半永久连接,恢复连网。S6. When an endpoint failure of a semi-permanent connection is eliminated, index to the corresponding record block according to the index number in the endpoint information, and send a networking message to the target endpoint respectively according to the semi-permanent connection information of the record block. The corresponding record block index number is carried in the network message, and the corresponding semi-permanent connection is rebuilt according to the record block information, and the network connection is restored.
上述通过半永久连接广播数据的方法,其特征在于:所述步骤S1中的所述记录块保存在对应机框单板上的内存中;The above-mentioned method for broadcasting data through a semi-permanent connection is characterized in that: the record block in the step S1 is stored in the memory on the corresponding chassis single board;
上述通过半永久连接广播数据的方法,其特征在于:所述步骤S5中的目标端点与故障端点在同一机框,直接给该机框发送拆网消息,并断开对应的半永久连接。The above method of broadcasting data through a semi-permanent connection is characterized in that: the target endpoint in the step S5 and the faulty endpoint are in the same frame, directly send a network removal message to the frame, and disconnect the corresponding semi-permanent connection.
上述通过半永久连接广播数据的方法,其特征在于:所述步骤S6中的目标端点与故障端点在同一机框,该故障端点的故障消除时,直接给该机框发送连网消息,重建目标端点与该端点的半永久连接。The above-mentioned method for broadcasting data through a semi-permanent connection is characterized in that: the target endpoint in the step S6 is in the same frame as the faulty endpoint, and when the fault of the faulty endpoint is eliminated, a network connection message is directly sent to the frame to rebuild the target endpoint A semi-permanent connection to this endpoint.
上述通过半永久连接广播数据的方法,其特征在于:所述步骤S6中还包括:根据所述记录块索引号索引到记录块,根据该记录块中的信息进行校验,当记录块中记录的半永久连接未被释放时,先释放该半永久连接,然后再重建该半永久连接,保证该半永久连接对应的代码可以重用。The above-mentioned method of broadcasting data through a semi-permanent connection is characterized in that: the step S6 also includes: indexing to the record block according to the record block index number, and performing verification according to the information in the record block, when the recorded in the record block When the semi-permanent connection is not released, release the semi-permanent connection first, and then rebuild the semi-permanent connection to ensure that the code corresponding to the semi-permanent connection can be reused.
上述通过半永久连接广播数据的方法,其特征在于:所述步骤S5中的目标端点与故障端点分别在两个机框,拆除该故障端点和故障端点所在机框与目标端点所在机框的中间时隙的半永久连接,并向目标端点所在机框发送拆网消息,拆除所述中间时隙与目标端点的半永久连接。The above-mentioned method for broadcasting data through a semi-permanent connection is characterized in that: the target endpoint and the faulty endpoint in the step S5 are located in two machine frames respectively, and when the faulty endpoint and the middle frame where the faulty endpoint is located and the frame where the target endpoint is located are removed The semi-permanent connection between the intermediate time slot and the target endpoint is sent to the machine frame where the target endpoint is located, and the semi-permanent connection between the intermediate time slot and the target endpoint is removed.
上述通过半永久连接广播数据的方法,其特征在于:所述步骤S6中的目标端点与故障端点分别在两个机框,该故障端点的故障消除时,连接该故障端点与所述中间时隙的半永久连接,并向目标端点所在机框下发连网消息,消息中携带对应记录块索引号,根据该记录块中的信息进行校验,当记录块中记录的半水久连接已被释放时,重建该半永久连接;当记录块中记录的半永久连接未被释放时,先释放该半永久连接,然后再重建该半永久连接,保证该半永久连接对应的代码可以重用。The above method of broadcasting data through a semi-permanent connection is characterized in that: the target endpoint and the faulty endpoint in the step S6 are respectively in two machine frames, and when the fault of the faulty endpoint is eliminated, the faulty endpoint and the intermediate time slot are connected Semi-permanent connection, and send a network connection message to the frame where the target endpoint is located. The message carries the corresponding record block index number, and checks according to the information in the record block. When the semi-permanent connection recorded in the record block has been released , to rebuild the semi-permanent connection; when the semi-permanent connection recorded in the record block has not been released, release the semi-permanent connection first, and then re-establish the semi-permanent connection to ensure that the code corresponding to the semi-permanent connection can be reused.
上述通过半永久连接广播数据的方法,其特征在于:当用户通过配置,删除了半永久连接的信息,该半永久连接的端点所在的一个机框向该半永久连接对应的机框下发拆网消息,消息中携带对应记录块索引号,该对应机框根据该记录块中的信息进行校验;The above method of broadcasting data through a semi-permanent connection is characterized in that: when the user deletes the information of the semi-permanent connection through configuration, a machine frame where the endpoint of the semi-permanent connection is located sends a network teardown message to the machine frame corresponding to the semi-permanent connection, and the message carries the index number of the corresponding record block, and the corresponding frame performs verification according to the information in the record block;
如果该半永久连接仍然存在,拆除该半永久连接,并删除该半永久连接对应的记录块,释放连网;If the semi-permanent connection still exists, remove the semi-permanent connection, delete the record block corresponding to the semi-permanent connection, and release the network;
如果该半永久连接已经不存在,删除该半永久连接对应的记录块,释放连网,保证所述端点代码在以后连网中的重用;当已删除记录块的机框收到连网消息时,根据该消息携带的记录块索引号重新申请记录块,并重建连网。If the semi-permanent connection does not exist, delete the record block corresponding to the semi-permanent connection, release the network, and ensure that the endpoint code will be reused in the network connection in the future; when the frame that has deleted the record block receives the network message, according to The record block index number carried in the message re-applies for the record block and rebuilds the network.
本发明的有益效果是:The beneficial effects of the present invention are:
1通过记录块的索引和校验,克服了现有技术存在的由于端点汇聚造成半永久连接重建失败的缺陷,保证端点发生故障后,半永久连接重建成功;1 Through indexing and verification of record blocks, it overcomes the defect of semi-permanent connection reconstruction failure caused by endpoint aggregation in the existing technology, and ensures that semi-permanent connection reconstruction succeeds after an endpoint fails;
2该方案对各个部分的连网不需要重写,只需借用普通连网的处理即可,从而极大地增加了代码重用的程度;2. This solution does not need to rewrite the networking of each part, but only needs to borrow the processing of ordinary networking, which greatly increases the degree of code reuse;
3在释放半永久连接的时候释放连网,即使释放失败,也不需要消息确认机制保证,而是在再次连网时,根据消息中的记录块索引核对连网信息,如果会引发端点汇聚,可以根据记录块中的连网信息释放连网,不会对其他半永久连接产生影响;3 Release the network when the semi-permanent connection is released. Even if the release fails, there is no need for a message confirmation mechanism to guarantee. Instead, when connecting to the network again, check the network information according to the record block index in the message. If it will cause endpoint convergence, you can Release the network according to the network information in the record block, and will not affect other semi-permanent connections;
4由于不需要消息确认机制保证机框间连网的正确释放,因此减少了机框间通信。4 Since the message confirmation mechanism is not required to ensure the correct release of the network between the chassis, the communication between the chassis is reduced.
附图说明 Description of drawings
下面将结合附图及实施例对本发明作进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
图1是2框半永久连接的示意图;Figure 1 is a schematic diagram of the semi-permanent connection of two frames;
图2是3框半永久连接的示意图;Figure 2 is a schematic diagram of the semi-permanent connection of three frames;
图3是另一种3框半永久连接的示意图。Figure 3 is a schematic diagram of another 3-frame semi-permanent connection.
具体实施方式 Detailed ways
图1中,机框1与机框2之间通过3根光纤102级连,端点C为机框1和机框2的中间时隙,其中C’表示中间时隙在机框1的时隙,C”表示中间时隙在机框2的时隙,C’和C”通过光纤102相连,机框1的端点A和机框2的端点B通过半永久连接A->C’和C”->B,实现A->B的前向连网。In Figure 1, frame 1 and frame 2 are cascaded through three
如果没有半永久多播的情况,端点B最多只存在一条半永久,那么可以直接释放端点B的所有连网来保证半永久重建的正确性。但是由于B点可能存在多条连网(如B->D,B->E,图中未示出),因此不能简单的释放B点的所有连接。如果下发消息释放C”->B的连网,通过消息确认机制,如果没有释放成功,则不停地释放,也可以达到释放的目的,但是如果多个消息都失败,必定会增加机框间通信的消息流量,而且还需要增加释放连网的确认消息,增加了代码的复杂度。If there is no semi-permanent multicast and there is only one semi-permanent at most at endpoint B, then all connections of endpoint B can be released directly to ensure the correctness of semi-permanent reconstruction. However, since there may be multiple connections at point B (such as B->D, B->E, not shown in the figure), all connections at point B cannot be simply released. If you send a message to release the network connection of C”->B, through the message confirmation mechanism, if the release is not successful, you can continue to release, which can also achieve the purpose of release, but if multiple messages fail, the chassis will definitely be added The message flow of inter-communication, but also need to increase the confirmation message of releasing the network, which increases the complexity of the code.
如果机框1的A点出现故障,不释放机框2的连网(C”->B),A点故障恢复时,只重建机框1的连网也是可行的。但是这样就无法重用普通连网的代码,因为普通连网,输入条件为终端的两个端点(A和B),而不能根据中间的时隙(C’和C”)进行连网,如果只针对机框1的A和C’进行连网,必然要重新实现半永久连接的机制,减少了可重用的代码。If point A of chassis 1 fails, the network connection of chassis 2 (C”->B) is not released. When the failure of point A recovers, it is feasible to only rebuild the network connection of chassis 1. However, it is impossible to reuse common The code for network connection, because of ordinary network connection, the input condition is the two endpoints (A and B) of the terminal, and it cannot be connected to the network according to the middle time slot (C' and C"). If it is only for A of chassis 1 To connect with C', it is necessary to re-implement the semi-permanent connection mechanism, which reduces the reusable code.
因此,为了保证在端点故障时,半永久连网的重建成功,在第一次连网前,对应一条半永久连接和其端点所在的一个机框申请一个记录块,记录该半永久连接的信息和该半永久连接的端点所在的机框的连网信息。Therefore, in order to ensure the successful reconstruction of the semi-permanent network when the endpoint fails, before connecting to the network for the first time, apply for a record block corresponding to a semi-permanent connection and a chassis where its endpoint is located, and record the information of the semi-permanent connection and the semi-permanent connection. Networking information of the chassis where the connected endpoint resides.
记录块是在各个机框单板上的内存中开辟的一个存储区,用于保存半永久连接和其端点所在的一个机框的连网信息,如半永久连接源端点、目的端点的信息和连网方向,以及半永久连接建立的结果(半永久连网是否已经建立,如果建立失败,记录失败的原因)等信息。The record block is a storage area opened up in the memory of each chassis single board, which is used to save the semi-permanent connection and the networking information of a chassis where its endpoint is located, such as the information of the source endpoint and destination endpoint of the semi-permanent connection and the network connection information. direction, and the result of the establishment of the semi-permanent connection (whether the semi-permanent network has been established, and if the establishment fails, record the reason for the failure) and other information.
给每条半永久连接的记录块分配一个唯一的索引号,用于标识半永久连接信息,将记录块索引号记入记录块对应半永久连接所在机框端点的端点信息中,记录块索引号与半永久连接是一一对应的,保证根据端点信息索引到对应的记录块。当半永久连接的两个端点在同一机框时,半永久连接对应于一个记录块;当半永久连接的两个端点分别在两个机框时,半永久连接对应于两个记录块,这两个记录块分别保存在对应机框单板的内存中。Assign a unique index number to each semi-permanent connection record block, which is used to identify the semi-permanent connection information. It is a one-to-one correspondence, ensuring that the corresponding record block is indexed according to the endpoint information. When the two endpoints of the semi-permanent connection are in the same chassis, the semi-permanent connection corresponds to one record block; when the two endpoints of the semi-permanent connection are in two chassis, the semi-permanent connection corresponds to two record blocks, and the two record blocks They are respectively stored in the memory of the boards corresponding to the chassis.
记录块索引号通过第一次建立连网时,下发给各个机框。在恢复半永久连接时,根据记录块索引号索引到记录块,从而查找到相关半永久连接的信息。例如针对半永久连接A->B和端点A所在机框1申请一个记录块,记录半永久连接A->B和其在机框1的连网信息,并保持在机框1单板的内存中;针对半永久连接A->B和端点B所在机框2申请一个记录块,记录半永久连接A->B和其在机框2的连网信息,并保持在机框2单板的内存中。给半永久连接A->B的两个记录块分配索引号11,并将该记录块索引号11记入记录块对应半永久连接所在机框端点(即A、C’、C”、B端点)的端点信息中。在机框1,根据记录块索引号11,可以找到半永久连接A->C’,根据端点A或C’,可以找到记录块索引号11,从而索引到对应记录块;在机框2,根据记录块索引号11,可以找到半永久连接C”->B,根据端点B或C”,可以找到记录块索引号11。在第一次建立半永久连接A->B,向机框2下发C”->B连网消息时,同时将记录块索引号11下发给机框2,这样机框2将C”->B的信息存放到记录块索引号11对应的记录块中,以便日后重建时查询。The record block index number is sent to each chassis when the network connection is established for the first time. When the semi-permanent connection is restored, the record block is indexed according to the record block index number, so as to find the relevant semi-permanent connection information. For example, apply for a record block for the semi-permanent connection A->B and the chassis 1 where the endpoint A is located, record the semi-permanent connection A->B and its networking information in the chassis 1, and keep it in the memory of the single board of the chassis 1; Apply for a record block for the semi-permanent connection A->B and the chassis 2 where the endpoint B is located, record the semi-permanent connection A->B and its networking information in the chassis 2, and keep it in the memory of the chassis 2 board. Assign an index number 11 to the two record blocks of the semi-permanent connection A->B, and record the index number 11 of the record block into the end points of the chassis where the record block corresponds to the semi-permanent connection (that is, A, C', C", B end points) In the endpoint information, in chassis 1, according to the record block index number 11, you can find the semi-permanent connection A->C', and according to the endpoint A or C', you can find the record block index number 11, so as to index to the corresponding record block; Box 2, according to the record block index number 11, you can find the semi-permanent connection C”->B, and according to the endpoint B or C”, you can find the record block index number 11. When the semi-permanent connection A->B is established for the first time, send to the chassis 2 When sending the C”->B network connection message, at the same time send the record block index number 11 to the chassis 2, so that the chassis 2 will store the information of C”->B in the record block corresponding to the record block index number 11 , so that it can be queried when rebuilding in the future.
如果A点出现故障,在拆除机框1A->C’的连网时,向目标端点B所在机框2下发拆网消息,拆除C”->B的连网。在A点故障恢复时,连接机框1的A->C’的连网,同时向目标端点B所在机框2下发连网消息(即C”->B),在消息中携带记录块索引号11。机框2收到上述连网消息(即C”->B)后,根据该消息中所携带的记录块索引号11索引到对应的记录块,根据该记录块的信息进行校验,如果该记录块中记录的连网(C”->B)已被释放,那么直接重建半永久连接;否则,先释放连网(C”->B),然后再重建连网。If there is a failure at point A, when the network connection of frame 1A->C' is removed, a network removal message will be sent to frame 2 where the target endpoint B is located, and the network connection of C”->B will be removed. When the fault at point A recovers , connect the network of A->C' of chassis 1, and send a network connection message (ie C"->B) to chassis 2 where the target endpoint B is located, and carry the record block index number 11 in the message. After receiving the above-mentioned network connection message (that is, C"->B), frame 2 indexes to the corresponding record block according to the record block index number 11 carried in the message, and performs verification according to the information of the record block. If the If the network (C”->B) recorded in the record block has been released, then directly re-establish the semi-permanent connection; otherwise, release the network (C”->B) first, and then re-establish the network.
如果用户在系统配置时,删除了半永久连接A->B的信息,需要由半永久连接A->B对应的机框1或机框2向A->B对应的另一机框下发拆网消息,消息中携带对应记录块索引号,拆除A->C’和C”->B的连网,同时删除机框1和机框2中对应于该半永久连接的记录块。如果该消息发送失败,将导致机框1和机框2的连网没有释放。如果以后再对C’和B点进行连网,同样会因为端点汇聚导致失败。因此,当机框1或机框2收到对C’或B点的连网消息时,如果会导致端点汇聚,就可以根据C’和B找到索引号为11的记录块,根据记录块中的信息,进行校验,如果该条半永久连接已经不存在,将释放连网,并删除对应的记录块,从而保证日后连网C’和B点代码的重用。If the user deletes the information of the semi-permanent connection A->B during system configuration, the frame 1 or frame 2 corresponding to the semi-permanent connection A->B needs to send the network removal to the other frame corresponding to A->B message, the message carries the index number of the corresponding record block, removes the connection between A->C' and C”->B, and deletes the record block corresponding to the semi-permanent connection in chassis 1 and chassis 2. If the message is sent If it fails, the connection between frame 1 and frame 2 will not be released. If C’ and point B are connected to the network in the future, it will also fail due to the aggregation of endpoints. Therefore, when frame 1 or frame 2 receives For the networking message of point C' or point B, if it will lead to the convergence of the endpoints, you can find the record block with the index number 11 according to C' and B, and check according to the information in the record block. If the semi-permanent connection If it no longer exists, the network will be released, and the corresponding record block will be deleted, so as to ensure the reuse of codes at points C' and B of the network in the future.
当已删除记录块的机框再收到连网消息时,根据该消息携带的记录块索引号重新申请记录块,并重建连网。When the chassis that has deleted the record block receives the network connection message again, it re-applies for the record block according to the record block index number carried in the message, and re-establishes the network connection.
图2中,机框1与机框2之间通过3根光纤102级连,机框1与机框3之间通过3根光纤103级连,端点F为机框1和机框3的中间时隙,其中F’表示中间时隙在机框1的时隙,F”表示中间时隙在机框3的时隙,F’和F”通过光纤103相连,机框1的端点A和机框3的端点E通过半永久连接A->F’和F”->E,实现A->E的前向连网。In Figure 2, frame 1 and frame 2 are cascaded through three
图2中,A点同时存在其他的连接,A->D(A点和D点同在机框1),A->E(A点和E点分别在机框1和机框3),那么也为这两条半永久分别申请记录块,并分配索引号为12的记录块保存A->D及其相应机框的连网信息,索引号为13的记录块保存A->E及其相应机框的连网信息。根据A点的信息,建立链表,可以根据A点索引到所有与A点相关的半永久连接信息(索引号为11,12,13的记录块对应的半永久连接信息)。In Figure 2, there are other connections at point A, A->D (points A and D are both in chassis 1), A->E (points A and E are in chassis 1 and chassis 3 respectively), Then apply for these two semi-permanent record blocks separately, and allocate the record block with index number 12 to save A->D and the networking information of the corresponding chassis, and the record block with index number 13 to save A->E and its Networking information of the corresponding chassis. According to the information of point A, a linked list is established, and all semi-permanent connection information related to point A can be indexed according to point A (semi-permanent connection information corresponding to record blocks with index numbers 11, 12, and 13).
如果A点故障,根据A点,在机框1索引到索引号为11、12、13的记录块,对这些记录块分别进行处理:对于索引号为11的记录块(记录A->B及其相应机框的连网信息),由于C’为框间时隙,所以需要给机框2发消息,处理在机框2的半永久连接,方法如上所述。If point A fails, according to point A, record blocks with index numbers 11, 12, and 13 are indexed in chassis 1, and these record blocks are processed separately: for record block with index number 11 (record A->B and The network connection information of the corresponding subrack), since C' is the time slot between subracks, it is necessary to send a message to subrack 2 to process the semi-permanent connection in subrack 2, and the method is as described above.
对于索引号为12的记录块(记录A->D及其相应机框的连网信息),由于D点为本机框的端点,只需要给本机框(机框1)发消息,断开A->D的连网。For the record block with the index number 12 (record A->D and the network connection information of the corresponding chassis), since point D is the endpoint of the local chassis, it is only necessary to send a message to the local chassis (chassis 1) to disconnect Open the A->D connection.
对于索引号为13的记录块(记录A->E及其相应机框的连接信息),处理方式与A->B相同。F点为所选择的框间时隙,那么在机框1,根据索引号为13的记录块,可以找到半永久连接A->F’;在机框3,根据索引号为13的记录块,可以找到半永久连接F”->E。如果A点出现故障,在拆除机框1A->F’的连网时,向机框3下发拆网消息,消息中携带记录块索引号13,拆除F”->E的连网。在A点故障消除时,连接机框1A->F’的连网,同时向机框3下发连网消息(F”->E),在消息中携带记录块索引号13。如果机框3收到了拆网消息,并及时拆除了F”->E的连网,那么在重建连网时,就不会有端点汇聚的情况发生。但是如果机框3没有收到拆除连网的消息,在连网时就会返回失败,因此,在机框3建立连网时,要根据记录块索引号13查找到对应记录块,如果记录块中记录的连网(F”->E)没有被释放,应该先释放连网,之后再进行连网。For the record block with index number 13 (record the connection information of A->E and its corresponding chassis), the processing method is the same as A->B. Point F is the selected inter-frame time slot, then in frame 1, according to the record block with index number 13, you can find the semi-permanent connection A->F'; in frame 3, according to the record block with index number 13, You can find the semi-permanent connection F”->E. If there is a failure at point A, when the network connection of frame 1A->F’ is removed, a network removal message is sent to frame 3. The message carries the record block index number 13, and the removal F”->E’s networking. When the fault at point A is eliminated, connect the network connection of frame 1A->F', and send a network connection message (F”->E) to frame 3 at the same time, and carry the record block index number 13 in the message. If the frame 3 Received the message of dismantling the network and dismantled the F"->E network in time, then when the network is rebuilt, there will be no endpoint convergence. However, if chassis 3 does not receive the message of dismantling the network connection, it will return a failure when connecting to the network. Therefore, when establishing the network connection in chassis 3, it is necessary to find the corresponding record block according to The network connection (F”->E) recorded in has not been released, you should release the network connection first, and then connect to the network.
图3中,机框1与机框2之间通过3根光纤102级连,机框2与机框4之间通过3根光纤204级连,端点I为机框2和机框4的中间时隙,其中I’表示中间时隙在机框2的时隙,I”表示中间时隙在机框4的时隙,I’和I”通过光纤204相连,机框2的端点B和机框4的端点H通过半永久连接B->I’和I”->H,实现B->H的前向连网。In Figure 3, frame 1 and frame 2 are cascaded through three
如果B点出现故障,按照上述方法同样处理。连网情况为A->B,B->G,B->H,G点和B点同在机框2,H点和B点分别在机框4和机框2。半永久连接的记录块索引号分别为11,14,15,索引号为14的记录块保存B->G及其相应机框的连网信息,索引号为15的记录块保存B->H及其相应机框的连接信息。B点出现故障时,根据B点信息,在机框2索引到索引号为11,14,15的记录块,对这些记录块分别进行处理。If there is a failure at point B, handle it in the same way as above. The network connection status is A->B, B->G, B->H, point G and point B are both in chassis 2, points H and point B are in chassis 4 and chassis 2 respectively. The index numbers of the semi-permanent connection record blocks are 11, 14, and 15 respectively. The record block with the index number 14 stores B->G and the networking information of the corresponding chassis, and the record block with the index number 15 stores B->H and The connection information of the corresponding chassis. When point B fails, according to the information of point B, record blocks with index numbers 11, 14, and 15 are indexed in chassis 2, and these record blocks are processed respectively.
对于索引号为11的记录块(记录A->B及其相应机框的连网信息),在拆除机框2C”->B的连网时,向机框1下发拆网消息,消息中携带记录块索引号11,拆除A->C’的连网。在B点故障恢复时,连接机框2的C”->B的连网,同时向机框1下发连网消息(A->C’),在消息中携带记录块索引号11。如果机框1收到了拆网消息,并及时拆除了A->C’的连网,那么在重建连网时,就不会有端点汇聚的情况发生。但是如果机框1没有收到拆除连网的消息,在连网时就会返回失败,因此,在机框1重建连网时,要根据记录块索引号11查找对应的记录块,如果记录块中记录的连网(A->C’)没有被释放,应该先释放连网,之后再进行连网。For the record block with the index number 11 (recording the network connection information of A->B and its corresponding frame), when the network connection of frame 2C”->B is removed, a network removal message is sent to frame 1, the message Carry the record block index number 11 in the record block, and remove the network connection of A->C'. When the fault at point B recovers, connect the network connection of C"->B of frame 2, and send a network connection message to frame 1 at the same time ( A->C'), carry the record block index number 11 in the message. If chassis 1 receives the network teardown message and removes the A->C’ network in time, then when the network is rebuilt, there will be no aggregation of endpoints. However, if chassis 1 does not receive the message of dismantling the network connection, it will return failure when connecting to the network. Therefore, when chassis 1 reconnects to the network, it needs to search for the corresponding record block according to the record block index number 11. If the record block The network connection (A->C') recorded in has not been released, you should release the network connection first, and then connect to the network.
对于索引号为14的记录块(记录B->G及其相应机框的连网信息),由于G点为本框的端点,只需要给本框(机框2)发消息,断开本机框的连网。For the record block with the index number 14 (record B->G and the network connection information of the corresponding frame), since point G is the endpoint of the frame, it is only necessary to send a message to the frame (frame 2) to disconnect the frame. Chassis networking.
对于索引号为15的记录块(记录B->H及其相应机框的连网信息),处理方式与A->B相同。I点为所选择的框间时隙,那么在机框2,根据索引号为15的记录块,可以找到半永久连接B->I’;在机框4,根据索引号为15的记录块,可以找到半永久连接I”->H。如果B点出现故障,在拆除机框2B->I’的连网时,向机框4下发消息,消息中携带记录块索引号15,拆除I”->H的连网。在B点故障消除时,连接机框2的B->I’的连网,同时向机框4下发连网消息(I”->H),在消息中携带记录块索引号15。如果机框4收到了拆网消息,并及时拆除了I”->H的连网,那么在重建连网时,就不会有端点汇聚的情况发生。但是如果机框4没有收到拆除连网的消息,在连网时就会返回失败,因此,在机框4重建连网时,要根据记录块索引号15查找对应的记录块,如果记录块中记录的连网(I”->H)没有被释放,应该先释放连网,之后再进行连网。For the record block with the index number 15 (recording B->H and the networking information of its corresponding chassis), the processing method is the same as A->B. Point I is the selected time slot between frames, then in frame 2, according to the record block whose index number is 15, the semi-permanent connection B->I' can be found; in frame 4, according to the record block whose index number is 15, You can find the semi-permanent connection I”->H. If there is a failure at point B, when the network connection of frame 2B->I’ is removed, a message is sent to frame 4, and the message carries the record block index number 15, and I” is removed -> H's networking. When the fault at point B is eliminated, connect the network connection of B->I' of frame 2, and send a network connection message (I”->H) to frame 4 at the same time, and carry the record block index number 15 in the message. If Frame 4 has received the message of dismantling the network and dismantled the I”->H network in time, so when the network is rebuilt, there will be no aggregation of endpoints. However, if frame 4 does not receive the message of dismantling the network connection, it will return a failure when connecting to the network. The network connection (I”->H) recorded in has not been released, you should release the network connection first, and then connect to the network.
本发明提出的方法,不仅适用于两个机框,还可以平滑扩容到3个机框以上的多机框情况,而且适用于各种多机框管理方式,如中心机框集中管理方式等等。例如3个机框级连,机框0作为中心交换框,机框1和机框2为业务框,那么可以通过机框0给机框1和机框2发消息,控制各个机框中半永久连接重建的情况。The method proposed by the present invention is not only applicable to two chassis, but also can be smoothly expanded to a multi-chassis situation of more than three chassis, and is also applicable to various multi-chassis management methods, such as the centralized management mode of the central chassis, etc. . For example, three chassis are cascaded, and chassis 0 is used as the central switching chassis, and chassis 1 and 2 are service chassis, then you can send messages to chassis 1 and 2 through chassis 0 to control the semi-permanent The case of connection reestablishment.
采用本发明的技术方案,可以带来以下有益效果:Adopting the technical scheme of the present invention can bring the following beneficial effects:
1.通过记录块的索引和校验,克服了现有技术存在的由于端点汇聚造成半永久连接重建失败的缺陷,保证端点发生故障后,半永久连接重建成功;1. By indexing and verifying record blocks, it overcomes the defect of semi-permanent connection reconstruction failure caused by endpoint convergence in the existing technology, and ensures that semi-permanent connection reconstruction succeeds after an endpoint failure;
2.该方案对各个部分的连网不需要重写,只需借用普通连网的处理即可,从而极大程度的增加了代码重用的力度;2. This solution does not need to rewrite the networking of each part, it only needs to borrow the processing of ordinary networking, which greatly increases the intensity of code reuse;
3.在释放半永久连接的时候释放连网,即使释放失败,也不需要消息确认机制保证,而是在再次连网时,根据消息中的记录块索引核对连网信息,如果会引发端点汇聚,可以根据记录块中的连网信息释放连网,不会对其他半永久连接产生影响;3. When the semi-permanent connection is released, the network connection is released. Even if the release fails, the message confirmation mechanism is not required. Instead, when the network is connected again, the network information is checked according to the record block index in the message. If it will cause endpoint convergence, The connection can be released according to the connection information in the record block, and will not affect other semi-permanent connections;
4.由于不需要消息确认机制保证框间连网的正确释放,因此减少了框间通信。4. Since the message confirmation mechanism is not required to ensure the correct release of the inter-frame networking, the inter-frame communication is reduced.
本方案可以在单机框和多机框条件下,实现信令监控等电信业务,既达到了扩容的目的,又可以灵活的实现各种单机框的业务,保证半永久多播的正确重建和释放。This solution can realize signaling monitoring and other telecommunication services under the conditions of single-chassis and multi-chassis. It not only achieves the purpose of capacity expansion, but also can flexibly realize various single-chassis services and ensure the correct reconstruction and release of semi-permanent multicast.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2005100328430A CN100370751C (en) | 2005-01-14 | 2005-01-14 | Methods for broadcasting data over semi-permanent connections |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2005100328430A CN100370751C (en) | 2005-01-14 | 2005-01-14 | Methods for broadcasting data over semi-permanent connections |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1805368A CN1805368A (en) | 2006-07-19 |
| CN100370751C true CN100370751C (en) | 2008-02-20 |
Family
ID=36867229
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2005100328430A Expired - Fee Related CN100370751C (en) | 2005-01-14 | 2005-01-14 | Methods for broadcasting data over semi-permanent connections |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN100370751C (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4959784B2 (en) * | 2007-02-27 | 2012-06-27 | 富士通株式会社 | Generating device, generating method, and generating program |
| CN104902352A (en) * | 2015-05-14 | 2015-09-09 | 烽火通信科技股份有限公司 | Large-capacity cluster equipment with multiple business frames and exchange frames |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6178168B1 (en) * | 1995-04-24 | 2001-01-23 | Telefonaktiebolaget Lm Ericsson | Method of controlling connections in a telecommunication system |
| CN1494352A (en) * | 2002-11-01 | 2004-05-05 | 华为技术有限公司 | A semi-permanent connection method for time-division multiplexing time slots in digital cross-connect equipment |
| CN1523847A (en) * | 2003-02-17 | 2004-08-25 | 华为技术有限公司 | A method for monitoring the SS7 link |
-
2005
- 2005-01-14 CN CNB2005100328430A patent/CN100370751C/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6178168B1 (en) * | 1995-04-24 | 2001-01-23 | Telefonaktiebolaget Lm Ericsson | Method of controlling connections in a telecommunication system |
| CN1494352A (en) * | 2002-11-01 | 2004-05-05 | 华为技术有限公司 | A semi-permanent connection method for time-division multiplexing time slots in digital cross-connect equipment |
| CN1523847A (en) * | 2003-02-17 | 2004-08-25 | 华为技术有限公司 | A method for monitoring the SS7 link |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1805368A (en) | 2006-07-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105103475B (en) | Method, device and system for link switching | |
| US9813286B2 (en) | Method for virtual local area network fail-over management, system therefor and apparatus therewith | |
| CN100438447C (en) | A recovery method and device for abnormal deletion of optical network LSP | |
| CN101702663A (en) | Method, device and system for updating ring network topology information | |
| CN102857419A (en) | Method and device for processing fault of link aggregation port | |
| CN101110768A (en) | Data communication method, system, main control card and line card | |
| CN109391691A (en) | The restoration methods and relevant apparatus that NAS is serviced under a kind of single node failure | |
| CN108804260B (en) | SRIO system switching method and device | |
| CN104468168B (en) | Network failure recovery method, control server and interchanger | |
| CN105743683A (en) | Terminal equipment management method in passive optical network, device and system | |
| CN111010319B (en) | VSF-based link detection method and device | |
| CN100495982C (en) | Method and system for implementing failover in a communication environment | |
| CN100370751C (en) | Methods for broadcasting data over semi-permanent connections | |
| CN101141751A (en) | Alarm message reporting system | |
| CN102136936B (en) | Method, node and system for preventing control plane faults from influencing operation of forward data plane | |
| CN104917689A (en) | Intelligent dial on-demand realization method and system and access router | |
| CN106357646A (en) | Agent control system for storing management software | |
| CN101640941A (en) | Connection resource release processing method and device | |
| US20180102835A1 (en) | Transmission device and network system | |
| CN101707555B (en) | Data interactive method and device in stack system | |
| CN103248510A (en) | Method and device for automatic recovery and reactivation of business | |
| CN102055635B (en) | TM method for Ethernet ring network and ring network node | |
| CN115695341B (en) | Method, equipment and medium for recovering port of domestic SRIO exchange chip | |
| CN1744568B (en) | Network nodes for exchanging data information via paths or detours | |
| CN102612099A (en) | Re-establishment method and device of service bearer |
Legal Events
| 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 |
Granted publication date: 20080220 Termination date: 20130114 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |