[Ryu-devel] 实操应对策略与有效调岗调薪、裁员解雇及违纪问题员工处理技巧

2018-02-27 Thread tbdqwg





  
  
  


  


  
  


新《劳动合同法》、《社会保险法》、《工伤保险条例》
实操应对策略与有效调岗调薪、裁员解雇及违纪问题员工处理技巧
 【 讲 师: 钟永棣 】

  2018年开课时间地点

  
 3月16--17深圳 B单元
  
3月22--23上海 B单元
  
3月30--31北京 B单元
  
4月13--14广州 A单元
  
4月20--21深圳 A单元
  


  
4月23--24上海 A单元
  
4月27--28北京 A单元
  
5月11--12广州 B单元
  5月18--19深圳 B单元
  5月25--26上海  B单元
  


  

5月30--31北京 B单元
  
6月22--23深圳 A单元
  
6月25--26上海 A单元
  6月29--30北京 A单元
  7月20--21深圳 B单元
  


  
注明:该课程2天为一个单元,A单元与B单元内容是完全独立的不分先后顺序,客户可根据自己需求选择参加A单元或者B单元,或AB单元均参加,可以参加完A单元再参加B单元或者先参加B单元再参加A单元均可,A单元与B单元内容请看下面的课程大纲!!!

  
新《劳动合同法》、《社会保险法》、《工伤保险条例》
  A单元内容(共2天,15个以上经典案例)
培训费用:A单元:3200RMB/1人  
参加AB单元:5800RMB/人(含培训费、资料费、午餐、税费等)

  
课程背景

  
  2008年,国家出台了《劳动合同法》、《劳动合同法实施条例》、《劳动争议调解仲裁法》、《职工带薪年休假条例》、《企业职工带薪年休假实施办法》;2009年,国家出台了《劳动人事争议仲裁办案规则》;2010年,国家出台了《劳动争议司法解释(三)》及修改了《工伤保险条例》;2011年,国家出台了《社会保险法》及《实施<社会保险法>若干规定》;2012年,国家出台了《企业民主管理规定》、《女职工劳动保护特别规定》及修改了《职业病防治法》;2013年,国家出台了《劳动争议司法解释(四)》、《劳务派遣若干规定》;2014年……  上述法律法规政策的持续实施,客观上要求企业精打细算,否则无法承受与日俱增的用工成本;客观上要求用人单位做到“精细化”管理,否则难以证明劳动者“不合格、不胜任、严重失职、严重违纪违规”,也难以进行合法有效的“调岗调薪、裁员解雇”。如果用人单位依然实施“传统式、粗放式、随便式”的管理,那么用人单位必将面临巨大的用工风险和赔偿责任,其管理权威也将受到严峻的挑战!  为帮助广大企事业单位了解相关政策法律法规,掌握防范用工风险和化解劳动争议的技能技巧,以实现低风险、低成本、高绩效的人力资源管理目标,特邀请我国知名的劳动法与员工关系管理实战专家钟永棣老师主讲此课程。欢迎企事业单位积极组织相关人员参加此培训课程!课程特色:  稀缺性:此课程将劳动法体系和薪酬绩效管理体系紧密相结合,国内极少出现此类课程。针对性:课程内容精选了过去5年来主讲老师亲自处理过的且在不少用人单位内部也曾发生过的代表性案例,这些案例完全符合中国现阶段的大环境大气候,极具参考性和启发性。实战性:实战沙盘演练,学员深入思考与充分互动,老师毫不保留倾囊相授;学员把错误留在课堂,把正确的观点、方法、工具、技能带回去。
课程收益
1、全面了解劳动用工过程的法律风险;2、理解与劳动用工有关的政策法律法规;3、培养预测、分析劳动用工法律风险的思维;4、掌握预防和应对风险的实战技能及方法工具……

  课程大纲

  
专题一:招聘入职1.如何预防劳动者的“应聘欺诈”,如何证明劳动者的“欺诈”?2.招收应届毕业生,应注意哪些细节问题?3.招用达到法定退休年龄的人员,应注意哪些细节问题?4.招用待岗、内退、停薪留职的人员,应注意哪些细节问题?5.入职体检需注意哪些细节问题?6.入职前后用人单位应告知劳动者哪些情况,如何保留证据?7.《入职登记表》如何设计,才能起到预防法律风险的作用?8.劳动者无法提交《离职证明》,该怎么办?9.企业如何书写《录用通知书》,其法律风险有哪些?专题二:劳动合同订立1.用人单位自行拟定的劳动合同文本是否有效,是否需要进行备案?2.劳动者借故拖延或拒绝签订劳动合同,用人单位如何应对?3.未签订劳动合同,需支付多长期限的双倍工资?是否受到仲裁时效的限制?4.劳动合同期满,继续留用劳动者,但未续签合同,是否也需支付双倍工资?5.什么时候为最佳时间,签署劳动合同、用工协议?6.法律禁止2次约定试用期,劳动合同期限和试用期限该如何约定?7.用人单位收购其他组织时,如何与被接收的员工签订、变更劳动合同?8.应否与属于职业经理人的法人代表签订劳动合同?专题三:试用期1.可否先试用后签合同,可否单独签订试用期协议? 2.员工主动申请延长试用期,该怎样操作,才规避赔偿风险?3.试用期满后辞退员工,最少赔2个月工资,该如何化解?4.试用期最后一天辞退员工,赔偿概率为70%,如何化解?5.试用期满前几天辞退员工,赔偿概率为50%,如何化解?6.不符合录用条件的范围包括哪些,如何取证证明?7.《试用期辞退通知书》如何书写,以避免违法解除的赔偿金?8.出现“经济性裁员”情况,优先裁掉试用期的新员工,合法吗?
专题四:无固定期限劳动合同1.无固定期限劳动合同到底是不是铁饭碗,会不会增加企业成本?2.无固定期限劳动合同解除的条件、理由有哪些?3.用人单位拒绝签订无固定期限劳动合同,有何风险?4.签订了固定期限劳动合同的员工,期间工作累计满10年,能否要求将固定期限合同变更为无固定期限合同?5.连续订立二次固定期限劳动合同到期,用人单位能否终止合同;员工提出签订无固定期限合同,用人单位能否拒绝?6.合同期满劳动者由于医疗期、三期等原因续延劳动合同导致劳动者连续工作满十年,劳动者提出订立无固定期限劳动合同的,用人单位能否拒绝?
专题五:特殊用工协议1.培训服务期与劳动合同期限有何不同,劳动合同期限与服务期限发生冲突时如何适用?2.培训服务期未到期,而劳动合同到期,用人单位终止劳动合同的,是否属于提前解除劳动合同,如何规避?3.劳动者严重过错被解雇,用人单位能否依据服务期约定要求劳动者支付违约金?4.在什么情况下,可签署竞业限制协议?5.在什么时候,企业更有主动权签署竞业限制协议?6.无约定经济补偿的支付,竞业限制是否有效?7.竞业限制的经济补偿的标准如何界定?8.要求员工保密,企业需要支付保密工资吗?
专题六:劳动关系解除终止1.双方协商解除劳动合同并约定支付适当的经济补偿,事后劳动者追讨经济补偿的差额部分,仲裁机构有可能支持劳动者的诉求,企业如何避免案件败诉?2.能否与“三期妇女、特殊保护期间的员工”协商解除,如何规避风险?3.员工未提前30日通知企业即自行离职,企业能否扣减其工资?4.员工提交辞职信后的30天内,企业批准其离职,可能有风险,如何化解?5.员工提交辞职信后的30天后,企业批准其离职,也可能有风险,如何化解?6.对于患病员工,能否解除,如何操作才能降低法律风险?7.实行末位淘汰制,以末位排名为由解雇员工,往往被认定非法解雇,企业该如何做,才避免案件败诉?8.以“组织架构调整,无合适岗位安排”为由解雇员工,感觉非常符合常理,但往往被认定非法解雇,企业该如何做才避免风险?9.以“经济性裁员”名义解雇员工,感觉非常符合常理,但往往被认定非法解雇,企业该如何操作?10.《解除劳动合同通知书》如果表述不当,往往成为劳动者打赢官司的有力证据,企业该如何书写,才避免案件败诉而承担法律责任?11.解除劳动合同前未通知及征求工会的意见,是否构成非法解除?12.劳动合同到期后,经常出现该终止的忘记办理终止手续,该续签的忘记办理续签手续,其引发的风险非常大;那么企业该如何规避风险?
专题七:社会保险法1.用人单位拖欠社保费,有什么法律责任?2.用人单位不足额缴纳社会保险如何处理?3.员工不愿意买社保,并与单位签有协议的情况下,该协议是否有效?4.试用期间,是否必须缴纳社会保险?5.如果无参保,劳动者因第三方责任产生的医疗费用,能否要求单位报销?6.企业协助辞职员工骗取失业保险金,有什么法律风险?7.女职工未婚先孕、未婚生育争议如何处理?8.怀孕女职工提出长期休假保胎,直至修完产假,该如何协调此问题?
专题八:劳动争议处理1.用人单位败诉的原因主要有哪些?2.仲裁或法院在处理案件时,如何适用法律法规?3.如何判定政策法律法规的效力等级? 4.公开审理的开庭形式,有何风险,如何避免风险?5.申请仲裁的时效如何计算;如何理解“劳动争议发生之日”?6.如何书写答辩书,有哪些注意事项?7.开庭期间,质证与辩论需要注意哪些关键问题?8.举证责任如何分配,无法举证的后果有哪些?

  
新《劳动合同法》、《社会保险法》、《工伤保险条例》
  B单元内容(共2天,15个以上经典案例)
培训费用:B单元:3200RMB/1人  
参加AB单元:5800RMB/人(含培训费、资料费、午餐、税费等)

  

  课程大纲

  
专题一:绩效管理与岗位调整1.企业单方调整岗位,员工往往可被迫解除合同并索赔经济补偿,如何规避?2.调岗时没有书面确认,员工到新岗位工作2个月后能否要求恢复到原岗位?3.可否对“三期内”女职工进行调岗、调薪?4.员工认同绩效结果,为什么在“不胜任工作”引发的争议中还是败诉?5.为什么企业根据绩效结果支付员工绩效奖金,最终被认定非法克扣工资?6.法律上如何证明劳动者“不能胜任工作”?7.对绩效考核不合格的员工,如何合法辞退?8.绩效正态分布往往强制划分5%的员工为不合格者,是否合法?

[Ryu-devel] New arrival!

2018-02-27 Thread Parker Robinson
[1]

New Collections [2]

Large sweater, made entirely in cashmere, has V-neck and long sleeves.

GO SHOPPING [3]

New arrivals [4]

View all [5]

[6]

PULLOVER PAOLA [7]

Large sweater, made entirely in cashmere, has V-neck and long sleeves.

$499.00

Buy [8]

[9]

PULLOVER PAUL [10]

Gradient cashmere pullover with 3/4 length sleeves and V-neck.

$559.00

Buy [11]

[12]

GILET PURDEY [13]

$599.00

Buy [14]

[15]

FUR PSAUME [16]

$999.00

Buy [17]

[18]

PAMELA [19]

$449.00

Buy [20]

[facebook] [21] 
 [instagram] [22] 
 [pinterest] [23] 
 [twitter] [24] 
 [linkedin] [25] 
 [youtube] [26] 
 [vimeo] [27] 
 [pinterest] [28] 
 [google] [29] 
 [tumblr] [30]

Parker Robinson

Links:
--
[1] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tLw
[2] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tLw/1
[3] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tLw/3
[4] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tL3dvbWVuLWNsb3RoaW5n
[5] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tL3dvbWVuLWNsb3RoaW5n/2
[6] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tL21tL01NLTYwMDA
[7] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tL21tL01NLTYwMDA/1
[8] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tL21tL01NLTYwMDA/3
[9] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tL21tL01NLTYwMDE
[10] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tL21tL01NLTYwMDE/1
[11] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tL21tL01NLTYwMDE/3
[12] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tL21tL01NLTYwMDQ
[13] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tL21tL01NLTYwMDQ/1
[14] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tL21tL01NLTYwMDQ/3
[15] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tL21tL01NLTYwMTk
[16] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tL21tL01NLTYwMTk/1
[17] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tL21tL01NLTYwMTk/3
[18] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tL21tL01NLTYwMDM
[19] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tL21tL01NLTYwMDM/1
[20] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL3BhcmtlcnJvYmluc29uc2FyYXNvdGEuY29tL21tL01NLTYwMDM/3
[21] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL2xsaWxpeWFrZW50LndvcmRwcmVzcy5jb20
[22] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL2xpaWxpeWFrZW50LndvcmRwcmVzcy5jb20
[23] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL2xpbGxpeWFrZW50LndvcmRwcmVzcy5jb20
[24] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL2xpaWxpaXlha2VudC53b3JkcHJlc3MuY29t
[25] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL2xpbGl5YWFrZW50LndvcmRwcmVzcy5jb20
[26] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL2tlbnRsaWxpeWEud29yZHByZXNzLmNvbQ
[27] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL2tlbnRsaWlsaXlhLndvcmRwcmVzcy5jb20
[28] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL2tlbnRsaWxsaXlhLndvcmRwcmVzcy5jb20
[29] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL2xpbGlpeWFrZW50LndvcmRwcmVzcy5jb20
[30] 
http://massmail.benefistutu.com/mailster/527/dcad316716eb7cb8824bc6c7feb47b85/aHR0cDovL2xpaWxsaXlha2VudC53b3JkcHJlc3MuY29t

--
Check out the vibrant tech community on one of the world's most

[Ryu-devel] You parcel will be deliver to your front door!

2018-02-27 Thread Benefis Company
Fast Shipping

Dear Friends! We would like to present you our new 
Ready-Made Costumes!
Place your order now and we will send it immediately!

GO SHOPPING

Also, don’t forget about our E-GIFT CARD – The perfect Gift for Any Occasion!
For News or to see our DAILY OFFERS – FOLLOW US ON OUR SOCIAL MEDIA CHANEL’S!

YOU PARCEL WILL BE DELIVER TO YOUR FRONT DOOR!

New arrivals

View all

Ballet Tutu

$389.00

$556

Buy

Ballet Tutu

$449.00

$598

Buy

Green Fashion Summer/Fall dress

$408.00

$583

Buy

Benefis Art.
1995-2018

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel


[Ryu-devel] pkt.get_protocol(bgp.BGPMessage) returns None

2018-02-27 Thread Ricardo Bennesby
Hi,

I am running ExaBGP from a Mininet node and modified the simple_switch_13
app to parse the BGP messages received from a peer. However, I can
correctly parse the IP and TCP fields of the packet, while the BGP part
returns *None:*

*The code:*
def parse_packet(self,message):
pkt = packet.Packet(message.data)

ip = pkt.get_protocol(ipv4.ipv4)
total_len = ip.total_length
ttl = ip.ttl
self.logger.info("Packet Total length: %s", total_len)
self.logger.info("Packet TTL: %s", ttl)

tcp_protocol = pkt.get_protocol(tcp.tcp)
src_port = tcp_protocol.src_port
dst_port = tcp_protocol.dst_port
self.logger.info("TCP source port: %s", src_port)
self.logger.info("TCP destination port: %s", dst_port)

bgp_protocol = pkt.get_protocol(bgp.BGPMessage)
if bgp_protocol == None:
self.logger.info("BGP is None")
else:
bgp_length = bgp_protocol.len
bgp_type = bgp_protocol.type
self.logger.info("BGP length: %s", bgp_length)
self.logger.info("BGP type: %s", bgp_type)

*The output:*
  Packet Total length: 1297
  Packet TTL: 64
  TCP source port: 179
  TCP destination port: 55083
  BGP is None

Can someone help me to address this problem?

Thank you in advance,



-- 
Ricardo Bennesby da Silva
Ciência da Computação - UFAM
LabCIA - Laboratório de Computação Inteligente e Autonômica
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel


Re: [Ryu-devel] pkt.get_protocol(bgp.BGPMessage) returns None

2018-02-27 Thread Iwase Yusuke

Hi Ricardo,

I guess you caught a TCP SYN (or SYN+ACK or ACK) packet leading the BGP
handshake, so the received packet has no TCP payload.

I could get the BGP packets with the following modification of simple_switch_13.


diff --git a/ryu/app/simple_switch_13.py b/ryu/app/simple_switch_13.py
index 06a5d0e..5437a7f 100644
--- a/ryu/app/simple_switch_13.py
+++ b/ryu/app/simple_switch_13.py
@@ -21,6 +21,9 @@ from ryu.ofproto import ofproto_v1_3
 from ryu.lib.packet import packet
 from ryu.lib.packet import ethernet
 from ryu.lib.packet import ether_types
+from ryu.lib.packet import ipv4
+from ryu.lib.packet import tcp
+from ryu.lib.packet import bgp


 class SimpleSwitch13(app_manager.RyuApp):
@@ -85,13 +88,26 @@ class SimpleSwitch13(app_manager.RyuApp):
 dst = eth.dst
 src = eth.src

+ipv4_pkt = pkt.get_protocol(ipv4.ipv4)
+if ipv4_pkt:
+self.logger.info("*** ipv4: %s", ipv4_pkt)
+
+tcp_pkt = pkt.get_protocol(tcp.tcp)
+if tcp_pkt:
+self.logger.info("*** tcp: %s", tcp_pkt)
+
+bgp_pkt = pkt.get_protocol(bgp.BGPMessage)
+if bgp_pkt:
+self.logger.info("*** bgp: %s", bgp_pkt)
+
 dpid = datapath.id
 self.mac_to_port.setdefault(dpid, {})

 self.logger.info("packet in %s %s %s %s", dpid, src, dst, in_port)

 # learn a mac address to avoid FLOOD next time.
-self.mac_to_port[dpid][src] = in_port
+# ---> suppress learning in order to get all packets sent from hosts.
+# self.mac_to_port[dpid][src] = in_port

 if dst in self.mac_to_port[dpid]:
 out_port = self.mac_to_port[dpid][dst]


$ ryu-manager ryu/app/simple_switch_13.py --verbose
...(snip)...
EVENT ofp_event->SimpleSwitch13 EventOFPPacketIn
*** ipv4: 
ipv4(csum=29812,dst='10.0.0.2',flags=2,header_length=5,identification=61765,offset=0,option=None,proto=6,src='10.0.0.1',tos=0,total_length=60,ttl=1,version=4)
*** tcp: 
tcp(ack=0,bits=2,csum=17646,dst_port=179,offset=10,option=[TCPOptionMaximumSegmentSize(kind=2,length=4,max_seg_size=1460), 
TCPOptionSACKPermitted(kind=4,length=2), 
TCPOptionTimestamps(kind=8,length=10,ts_ecr=0,ts_val=3591680), 
TCPOptionNoOperation(kind=1,length=1), 
TCPOptionWindowScale(kind=3,length=3,shift_cnt=9)],seq=3591782213,src_port=39095,urgent=0,window_size=29200)

packet in 1 6a:ac:ab:96:a2:cd ea:6f:1f:bf:38:3d 1
EVENT ofp_event->SimpleSwitch13 EventOFPPacketIn
*** ipv4: 
ipv4(csum=26553,dst='10.0.0.1',flags=2,header_length=5,identification=0,offset=0,option=None,proto=6,src='10.0.0.2',tos=0,total_length=60,ttl=255,version=4)
*** tcp: 
tcp(ack=3591782214,bits=18,csum=24208,dst_port=39095,offset=10,option=[TCPOptionMaximumSegmentSize(kind=2,length=4,max_seg_size=1460), 
TCPOptionSACKPermitted(kind=4,length=2), 
TCPOptionTimestamps(kind=8,length=10,ts_ecr=3591680,ts_val=3591682), 
TCPOptionNoOperation(kind=1,length=1), 
TCPOptionWindowScale(kind=3,length=3,shift_cnt=9)],seq=3896193224,src_port=179,urgent=0,window_size=28960)

packet in 1 ea:6f:1f:bf:38:3d 6a:ac:ab:96:a2:cd 2
EVENT ofp_event->SimpleSwitch13 EventOFPPacketIn
EVENT ofp_event->SimpleSwitch13 EventOFPPacketIn
*** ipv4: 
ipv4(csum=29819,dst='10.0.0.2',flags=2,header_length=5,identification=61766,offset=0,option=None,proto=6,src='10.0.0.1',tos=0,total_length=52,ttl=1,version=4)
*** tcp: 
tcp(ack=3896193225,bits=16,csum=65089,dst_port=179,offset=8,option=[TCPOptionNoOperation(kind=1,length=1), 
TCPOptionNoOperation(kind=1,length=1), 
TCPOptionTimestamps(kind=8,length=10,ts_ecr=3591682,ts_val=3591683)],seq=3591782214,src_port=39095,urgent=0,window_size=58)

packet in 1 6a:ac:ab:96:a2:cd ea:6f:1f:bf:38:3d 1
*** ipv4: 
ipv4(csum=29767,dst='10.0.0.2',flags=2,header_length=5,identification=61767,offset=0,option=None,proto=6,src='10.0.0.1',tos=0,total_length=103,ttl=1,version=4)
*** tcp: 
tcp(ack=3896193225,bits=24,csum=55108,dst_port=179,offset=8,option=[TCPOptionNoOperation(kind=1,length=1), 
TCPOptionNoOperation(kind=1,length=1), 
TCPOptionTimestamps(kind=8,length=10,ts_ecr=3591682,ts_val=3591683)],seq=3591782214,src_port=39095,urgent=0,window_size=58)
*** bgp: 
BGPOpen(bgp_identifier='1.1.1.1',hold_time=90,len=57,my_as=65001,opt_param=[BGPOptParamCapabilityRouteRefresh(cap_code=2,cap_length=0,length=2,type=2), 
BGPOptParamCapabilityMultiprotocol(afi=1,cap_code=1,cap_length=4,length=6,reserved=0,safi=1,type=2), 
BGPOptParamCapabilityMultiprotocol(afi=2,cap_code=1,cap_length=4,length=6,reserved=0,safi=1,type=2), 
BGPOptParamCapabilityFourOctetAsNumber(as_number=65001,cap_code=65,cap_length=4,length=6,type=2)],opt_param_len=28,type=1,version=4)

packet in 1 6a:ac:ab:96:a2:cd ea:6f:1f:bf:38:3d 1


Thanks,
Iwase


On 2018年02月27日 23:16, Ricardo Bennesby wrote:

Hi,

I am running ExaBGP from a Mininet node and modified the simple_switch_13 app to 
parse the BGP messages received from a peer. However, I can correctly parse the 
IP and TCP fields of the packet, while the BGP part returns *None:*


_*The code:*_
     

Re: [Ryu-devel] Fwd: Event_Link_Delete triggering

2018-02-27 Thread Iwase Yusuke

Hi Taha,

I couldn't investigate why, but on your attached log messages,
"EventSwitchLeave" are shown. Datapath might be disconnected for some reason,
then "EventLinkDelete" occurred.

Thanks,
Iwase

On 2018年02月28日 00:13, Taha Khan wrote:


Hi,

I added EventLinkDelete in my code. And noticed EventLinkDelete is getting 
triggered, while discovering the topology, although I am installing flow rules 
in the switch those are getting installed successfully.
I am confused why the delete event is getting triggered at the first place or 
should I ignore it.


I am sending this email second time because I received HTTP error 550 earlier.

Thanks!
Taha



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



___
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel


[Ryu-devel] How to know the number of flows

2018-02-27 Thread ‏Eman ‏ Bany salameh via Ryu-devel
Hi,

I need to know the number of flows installed on the switch before adding new 
one. What I did before is to request stat from the switch then read the length 
of the list returned. 
This way is not useful for me. 
Is there any way to count them inside packet-in handler before adding new flow? 
I want to limit the number of flows added to 1500.
 
Regards,
Eman Bany Salameh



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel


Re: [Ryu-devel] Uncaught exception in hello_failed (Python3)

2018-02-27 Thread William Fisher
Hi Iwase,

On Mon, Feb 26, 2018 at 10:55 PM, Iwase Yusuke  wrote:
>
> A little difference though, how about doing "encode" in parser classes as
> the
> following? If encoding is done in parser, the differences of Python2 and
> Python3
> can be obscured against Ryu users.

Yes, this change looks good to me. It makes sense to handle the ascii
encoding in the OFPErrorMsg class.


>> Also: Ryu leaves the OF connection open after responding to the hello
>> failed message. The connection appears to remain in the
>> HANDSHAKE_DISPATCHER state. What is the best way to close the
>> connection?
>
> Thanks for your pointing out.
> I found that Ryu does not automatically close the OF connection when the
> failure
> of the version negotiation, so Ryu application need to close it manually.
> I think it can be often overlooked and dangerous.
>
> What do you think about adding "close_socket" option to
> "Datapath.send_msg()"
> method, which will close socket after sending the given message?

The send_msg api looks okay.  I guess there is no easier way to close
and flush the connection.

> +if close_socket:
> +# Forces to call _deactivate()
> +raise CloseSocketRequest
> +except CloseSocketRequest:
> +pass

I didn't understand this part of your change. You throw a
CloseSocketRequest exception but immediately catch it. This seems like
the same operation as a "break" or "return" which will drop you down
to the finally clause. I see that _deactivate is a decorator that
calls shutdown() on the socket for wrapped methods, but I don't see
how it can ever be called in this case. _send_loop() is not protected
by _deactivate.

Regards,

-Bill

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel