CN102891810B - Method for dynamically distributing satellite channels by modifying Internet protocol (IP) message header - Google Patents

Method for dynamically distributing satellite channels by modifying Internet protocol (IP) message header Download PDF

Info

Publication number
CN102891810B
CN102891810B CN201210339578.0A CN201210339578A CN102891810B CN 102891810 B CN102891810 B CN 102891810B CN 201210339578 A CN201210339578 A CN 201210339578A CN 102891810 B CN102891810 B CN 102891810B
Authority
CN
China
Prior art keywords
message
carry out
out step
header
executing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210339578.0A
Other languages
Chinese (zh)
Other versions
CN102891810A (en
Inventor
邓创
彭伟夫
肖行诠
付重
刘革
杨鸿昌
徐亮
马玫
邱天敏
任剑
艾江福
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SICHUAN ELECTRIC POWER Corp INFORMATION COMMUNICATION CO Ltd
Sichuan Andi Technology Industrial Co Ltd
Original Assignee
SICHUAN ELECTRIC POWER Corp INFORMATION COMMUNICATION CO Ltd
Sichuan Andi Technology Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SICHUAN ELECTRIC POWER Corp INFORMATION COMMUNICATION CO Ltd, Sichuan Andi Technology Industrial Co Ltd filed Critical SICHUAN ELECTRIC POWER Corp INFORMATION COMMUNICATION CO Ltd
Priority to CN201210339578.0A priority Critical patent/CN102891810B/en
Publication of CN102891810A publication Critical patent/CN102891810A/en
Application granted granted Critical
Publication of CN102891810B publication Critical patent/CN102891810B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Radio Relay Systems (AREA)

Abstract

The invention discloses a method for dynamically distributing satellite channels by modifying an Internet protocol (IP) message header. The method comprises the following steps of: 1, acquiring an Ethernet data packet of a network card; 2, detecting the data packet, if the data packet is an IP message and is in an IP4V version, executing the step 3, otherwise, receiving and returning the data packet; 3, judging whether an IP header protocol type is a generic routing encapsulation (GRE) message type, if so, executing the step 4, otherwise, receiving and returning the IP header protocol type; 4, resolving a protocol type in a GRE message header of the packet, if the protocol type is a multiple protocol label switching (MPLS) message, executing the step 5, and if the protocol type is the IP message, receiving and returning the protocol type; 5, resolving an MPLS packet header, acquiring an S mark bit which represents a stack bottom, wherein value 1 is the stack bottom, if the S mark bit is the stack bottom, executing the step 6, otherwise, executing the step 9; 6, if the MPLS message comprises a transmission control protocol (TCP) message, judging whether the TCP message is a service message, if so, executing the step 7, otherwise, receiving and returning the TCP message; and 7, modifying a tos domain of the IP header on the outermost layer of the overall message to be an appointed value.

Description

A kind of method being realized satellite channel dynamic assignment by amendment IP heading
Technical field
The present invention relates to communication gate technical field, provide a kind of method being realized satellite channel dynamic assignment by amendment IP heading.
Background technology
Gateway is in the Traffic Channel dynamic allocation procedure supporting satellite modem, need to carry out ip head tos attribute modification by through gateway to the data of satellite modem, make satellite modem can carry out dynamic construction satellite business channel according to the business datum message containing corresponding tos value, and in the data of satellite channel, the data message related generally to is divided into two classes: the first kind is routing protocol data, i.e. ospf, ldp, bgp, gre message; Equations of The Second Kind is business datum, i.e. MPLS-VPN message, and wherein common ground is all routes and business datum is all encapsulated by GRE message.To the amendment of the business datum message related to, deal with data message is carried out by structure linux driver module, instead of the method revised again after carrying out data packet capturing by application layer packet capturing software, because, by this method of inner nuclear layer module amendment ip data head, shorten the bang path of data message in whole software systems, improve the treatment effeciency of gateway system.
Summary of the invention
The object of the present invention is to provide a kind of method being realized satellite channel dynamic assignment by amendment IP heading.
The present invention is to achieve these goals by the following technical solutions:
Realized a method for satellite channel dynamic assignment by amendment IP heading, it is characterized in that comprising the following steps:
1) network interface card Ethernet data bag is obtained;
2) detect Ethernet data bag, detect as IP message and be IP4V version, then carry out step 3, otherwise receive and return;
3) judge whether the protocol type in IP head is GRE type of message, as then carry out step 4 for GRE type of message, otherwise receives and returns;
4) protocol type in bag GRE heading is resolved, as then carry out step 5 for MPLS message, as then received for IP message and returning;
5) resolve MPLS packet header, obtain S flag bit, whether S is masked as expression is at the bottom of stack, and value 1 is at the bottom of stack; As for carry out step 6 at the bottom of stack, not for carry out step 9 at the bottom of stack;
6) if MPLS message that message comprises is TCP message, determine whether service message, as carry out step 7 for service message, receiving for during non-traffic message and returning;
7) the outermost layer IP head tos territory of revising overall message is designated value.
The present invention has following beneficial effect:
By arranging or change COS (the Type of Service of packet, TOS) field etc., in bag, value of statistical indicant is set, this value of statistical indicant is utilized to carry out bandwidth restriction and classified inquiry, therefore, satellite link can be designed to: when passing through without business datum, all packets walk the signalling path of satellite link, and when business datum MPLS message is through out-of-date, by trigger business passage.This design well improves the utilance of satellite bandwidth.
Accompanying drawing explanation
Fig. 1 is logic block-diagram of the present invention.
Embodiment
The present invention will be further explained below illustrates:
Realized a method for satellite channel dynamic assignment by amendment IP heading, it is characterized in that comprising the following steps:
1) network interface card Ethernet data bag is obtained;
2) detect Ethernet data bag, detect as IP message and be IP4V version, then carry out step 3, otherwise receive and return;
3) judge whether the protocol type in IP head is GRE type of message, as then carry out step 4 for GRE type of message, otherwise receives and returns;
4) protocol type in bag GRE heading is resolved, as then carry out step 5 for MPLS message, as then received for IP message and returning;
5) resolve MPLS packet header, obtain S flag bit, whether S is masked as expression is at the bottom of stack, and value 1 is at the bottom of stack; As for carry out step 6 at the bottom of stack, not for carry out step 9 at the bottom of stack;
6) if MPLS message that message comprises is TCP message, determine whether service message, as carry out step 7 for service message, receiving for during non-traffic message and returning;
7) the outermost layer IP head tos territory of revising overall message is designated value.

Claims (1)

1. realized a method for satellite channel dynamic assignment by amendment IP heading, it is characterized in that comprising the following steps:
1) network interface card Ethernet data bag is obtained;
2) detect Ethernet data bag, detect as IP message and be IPV4 version, then carry out step 3, otherwise receive and return;
3) judge whether the protocol type in IP head is GRE type of message, as then carry out step 4 for GRE type of message, otherwise receives and returns;
4) protocol type in bag GRE heading is resolved, as then carry out step 5 for MPLS message, as then received for IP message and returning;
5) resolve MPLS packet header, obtain S flag bit, S flag bit represents whether be at the bottom of stack, and value 1 is at the bottom of stack; As for carry out step 6 at the bottom of stack, not for carry out step 7 at the bottom of stack;
6) if MPLS message that message comprises is TCP message, determine whether service message, as carry out step 7 for service message, receiving for during non-traffic message and returning;
7) the outermost layer IP head tos territory of revising overall message is designated value.
CN201210339578.0A 2012-09-14 2012-09-14 Method for dynamically distributing satellite channels by modifying Internet protocol (IP) message header Active CN102891810B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210339578.0A CN102891810B (en) 2012-09-14 2012-09-14 Method for dynamically distributing satellite channels by modifying Internet protocol (IP) message header

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210339578.0A CN102891810B (en) 2012-09-14 2012-09-14 Method for dynamically distributing satellite channels by modifying Internet protocol (IP) message header

Publications (2)

Publication Number Publication Date
CN102891810A CN102891810A (en) 2013-01-23
CN102891810B true CN102891810B (en) 2015-04-15

Family

ID=47535181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210339578.0A Active CN102891810B (en) 2012-09-14 2012-09-14 Method for dynamically distributing satellite channels by modifying Internet protocol (IP) message header

Country Status (1)

Country Link
CN (1) CN102891810B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426873B (en) * 2013-08-30 2018-07-03 中国科学院声学研究所 A kind of IP packet generation, sending method and system based on user demand
CN105553810A (en) * 2015-12-14 2016-05-04 中国联合网络通信集团有限公司 Method and device for forwarding special line service packet
CN109379129A (en) * 2018-11-30 2019-02-22 四川安迪科技实业有限公司 Satellite band Resource dynamic allocation algorithm
CN109561094B (en) * 2018-12-06 2021-06-11 国网辽宁省电力有限公司锦州供电公司 Method for changing electric quantity acquisition data message head structure by using wind power level

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471863A (en) * 2007-12-25 2009-07-01 ***通信集团公司 Method, device and transition gateway for processing data between networks
CN101582897A (en) * 2009-06-02 2009-11-18 中兴通讯股份有限公司 Deep packet inspection method and device
CN102143035A (en) * 2010-06-04 2011-08-03 华为技术有限公司 Data traffic processing method, network device and network system
EP2498450A1 (en) * 2009-11-03 2012-09-12 ZTE Corporation Broadband network system and implementation method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471863A (en) * 2007-12-25 2009-07-01 ***通信集团公司 Method, device and transition gateway for processing data between networks
CN101582897A (en) * 2009-06-02 2009-11-18 中兴通讯股份有限公司 Deep packet inspection method and device
EP2498450A1 (en) * 2009-11-03 2012-09-12 ZTE Corporation Broadband network system and implementation method thereof
CN102143035A (en) * 2010-06-04 2011-08-03 华为技术有限公司 Data traffic processing method, network device and network system

Also Published As

Publication number Publication date
CN102891810A (en) 2013-01-23

Similar Documents

Publication Publication Date Title
CN111742525B (en) Multi-cloud VPC routing and registration
CN102404197B (en) Data path processing information included in the pseudowire layer of packets
CN106464590B (en) A kind of method and device of to acquisite approachs information
CN108737269B (en) Encapsulation method, device and node
CN102891810B (en) Method for dynamically distributing satellite channels by modifying Internet protocol (IP) message header
CN103797769A (en) Services controlled session based flow interceptor
US9667437B2 (en) Billing multiple packet flows associated with a client router
CN103548323B (en) Flow identification method, device, and system
CN106411738A (en) Processing method and apparatus of packaging of IPV6 message
WO2015192501A1 (en) Address information publishing method and apparatus
CN105745898B (en) It is used for transmission the method and telecommunication installation of the media data with different media types
CN105577416B (en) Service function chain operation, management and maintenance method and node equipment
CN107181691B (en) Method, equipment and system for realizing message routing in network
EP2712130B1 (en) Service control method and system for autonomous network
CN107342939A (en) The method and apparatus for transmitting data
US20160119228A1 (en) Forwarding packets
CN102546433A (en) Data forwarding method based on MPLS (Multi Protocol Label Switching) VPN (Virtual Private Network) and PEs (Provider Edges)
US20150063363A1 (en) Communication network with distributed network address translation functionality
CN113328915A (en) Associated network measuring method based on SRv6
EP3484107B1 (en) Parameter notification and obtaining methods and devices, and storage medium
US11032184B2 (en) Method and device for collecting traffic flow value of BGP community attribute or BGP extended community attribute
CN106470143A (en) A kind of method and apparatus of MPLS VPN traffic filtering
CN103748842B (en) Method, device and route device for forwarding data packages
CN101640635A (en) Method for avoiding message recombination in 6over4 tunnel and system therefor
WO2009093225A3 (en) Circuit emulation over an ip interworking virtual leased line

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